Full text search in BLOB columns NOT Working
Hi, I am using Oracle 9i.
Presently I use following code to create index.
begin
Ctx_Ddl.Drop_Preference ('text_only');
end;
begin
Ctx_Ddl.Create_Preference ( 'text_only', 'basic_lexer');
Ctx_Ddl.Set_Attribute ( 'text_only', 'index_text', 'true' );
Ctx_Ddl.Set_Attribute ( 'text_only', 'index_themes', 'false' );
end;
CREATE TABLE MY_XML_DOCS(
XML_RES_ID NUMBER (16) NOT NULL,
XML_RES BLOB NOT NULL,
XML_RES_PATH VARCHAR2 (128),
XML_DOCS_CREATED_BY VARCHAR2 (16) NOT NULL,
XML_DOCS_CREATED_DT DATE NOT NULL,
XML_DOCS_MODIFIED_BY VARCHAR2 (16),
XML_DOCS_MODIFIED_DT DATE ) ;
drop index FULL_TEXT_INDEX ;
create INDEX FULL_TEXT_INDEX ON MY_XML_DOCS(XML_RES)
INDEXTYPE IS ctxsys.CONTEXT
parameters ('lexer text_only stoplist ctxsys.empty_stoplist');
BEGIN
CTX_DDL.sync_index('FULL_TEXT_INDEX ','10M');
END;
And I've some XML documents stored in blob columns in the above table. But my query with 'contains' param does not return expected results.(it presently returns no results). Do I miss anything? Do I need to specify any thing else while I create the Index? Kindly advice.
I would agree the CLOB storage would be preferable for XML. If you are using BLOB storage, by default the documents are going to be FILTERed by the INSO_FILTERS. A BLOB column will give you reduced storage in a unicode environment though.
If you wish to store your data in a BLOB though, you should specify the NULL_FILTER in your create index statement to avoid having the INSO_FILTERS invoked.
Further, you may also require a CHARSET column in your table specifying the character set of your data for each row if it can vary. The Column should then also be specified in the 'PARAMETERS' clause of the create index statement, this way Oracle knows the correct character set to use when converting the binary data to character data.
My guess that you are not getting any query results because none of the documents are actually being indexed. Be sure to query the ctx_user_index_errors view to determine if you are getting errors at indexing time.
Similar Messages
-
Full Text Search in PDF file Not Working in SQL Server 2012
OS: Windows Server 2012 @ Azure
DB: SQL Server 2012 SP 1 with Cum Update 6
Filter: OfficeFilter installed, PDFFilter64 11 installed (actually I tried 9 too)
I have done the following steps:-
1. Configure SQL Server Instance to enable FILESTREAM for Transaction-SQL Access (IO Access and Allow Remote Client Access to FileStream data) and restart the instance service.
2. Set Stream Access Level to Full Access and
3. Create Database with file stream folder and set the created database Properties.Options: FileStreamDirectorName = fileContainer and FileStream Non-Transaction Access = Full.
4. Create a FileTable with file director
5. Execute the following scripts to ensure all installed components working. PDF is listed as one of the supported filter.
EXEC sp_fulltext_service @action='load_os_resources', @value=1;
EXEC sp_fulltext_service 'verify_signature', 0 -- don't verify signatures
EXEC sp_fulltext_service 'update_languages'; -- update language list
EXEC sp_fulltext_service 'restart_all_fdhosts';
EXEC sp_help_fulltext_system_components 'filter'
reconfigure with override
6. Copy a few PPTX, DOCX, PDF file into the file director.
7. Search the data by following command. I can PPTX and DOCX files can return right result but PDF is not returned although it contains the searching contents.
SELECT *
FROM dbo.Course
WHERE CONTAINS(file_stream, 'Counsellor');
Any expert advise?
Ant in SGAre you seeing any errors in the SQL Server Error Log, the Windows Application or System logs? How about in the Full-text crawl logging?
Troubleshooting Errors in a Full-Text Population (Crawl)
If your server has a mix of multi-threaded iFilters and single-threaded iFilters, this can cause serious problems with building the full text index. (How do I know this? Well, let's just say that I have suffered as well. And I was shocked!)
The efficiency was greatly increased by this article:
Troubleshooting: Slow Full-Text Indexing Performance Due to Filtering Process
This means changing the threading model for the multi-threaded (e.g. Microsoft Office) filters to be Apartment Threaded. Or perhaps if you are full text indexing PDF files, abandoning the free single-threaded Adobe IFilter and purchasing the FoxIt
(or some other) multi-threaded PDF iFilter would benefit you.
RLF -
Full text search in Chinese Language not finding results
We are translating one of our Webhelp projects into
simplified chinese, and everything is working fine except full text
search. We can type chinese characters into the search box but no
results appear even though we have already translated a lot of the
webhelp into chinese. Note that we have breadcrumbs, TOC and Index
functioning correctly in chinese.
The FAQ for Robohelp claims that FTS is supported in other
languages but I am stuck - I can't figure out how to make it work.
Any help would be greatly appreciated.There was some language stuff in those patches that I hoped
would fix your problem, obviously not.
I am not familiar with working with languages. Have you tried
changing the language in Project Settings? Have you tried importing
a couple of topics into a new project?
Beyond that, hopefully someone with more relevant knowledge
can help you. -
Hi,
I have a problem with UCM (10gR4) full-text search. I does not return any results.
In the Repository Manager applet, Indexer tab, I have run the indexer (under Collection Rebuild Cycle) and waited until it finished. It said that it has indexed 5424 files as full-text.
Under *"Configuration for Stellent"*, I have the following data:
Search Engine:: DATABASE.FULLTEXT
Index Engine Name: DATABASE.FULLTEXT
Active Index: IdcColl1
So, I think everything looks fine. Does anybody know why it doesn't work?
Thanks in advanceDuring installation have to executed fulltextindex.sql that is available under oracle\ucm\server\database\oracle\admin folder?
If not kindly exectute it.. -
Full-Text search is not working with PDF files - SQL Server 2012 64 bit
Hi,
We are in the process of storing PDF files in SQL Server 2012 with Full-Text search capability.
I followed the steps as below and it works fine with word document but not for PDF files. I tried with PDF ifiler 11 & 9 and both are unsuccessful.
Server/DB Level Settings:
1)
Enable FileStream
2)
Install Full-Text
then restart
3)
Use [specific db]
alter
database [db name]
add
filegroup Files
contains filestream;
alter
database [db name]
add
file (
name = N'Files',
filename =
N'D:\SQL\DATA') to
filegroup [Files];
3)
Database level
Settings:
FileStream:
FileStream
Directory name:
[Set the name]
FileStream
non-transacted
Access: [set Appropriate]
3a)
Add a
datafile to DB
with filestreamdata
filetype.
4)
Share D:\SQL\DATA
directory and
add specific accounts
with read/write
access
5)
Give bulkadmin
access to those
specific accounts
at server
level
6)
From the
page (link)
download and
install the *.pdf
IFilter for
FTS. Link:
http://www.adobe.com/support/downloads/detail.jsp?ftpID=5542
7)
To the
PATH global system
variable add
path to the
catalog,
where you installed
the plugin.
Default for
this version is:
C:\Program
Files\Adobe\Adobe
PDF iFilter 9
for 64-bit
platforms\bin
8)
From the
page (link)
download a
FilterPackx64.exe
and install
it. Link:
http://www.microsoft.com/en-us/download/confirmation.aspx?id=20109
9)
Now from
SSMS execute the following
procedures:
-sp_fulltext_service
'load_os_resources',1
-sp_fulltext_service
'verify_signature', 0
EXEC
sp_fulltext_service
'update_languages';
-- update language list
EXEC
sp_fulltext_service
'restart_all_fdhosts';
-- restart daemon
reconfigure
with override;
10)
Restart the
server
11)
select document_type,
path from
sys.fulltext_document_types
where document_type
= '.pdf'
-select
document_type,
path from sys.fulltext_document_types
where document_type
= '.docx'
12) Results are OK.
Following is my Table /Index/ catalog script:
CREATE
TABLE dbo.DocumentFilesTest
DocumentId INT
IDENTITY(1,1)
NOT NULL
PRIMARY KEY,
AddDate datetime
NOT NULL,
Name nvarchar(50)
NOT NULL,
Extension nvarchar(10)
NOT NULL,
Description nvarchar(1000)
NULL,
FileStream_Id UNIQUEIDENTIFIER
ROWGUIDCOL NOT
NULL UNIQUE DEFAULT
NEWSEQUENTIALID(),
FileSource varbinary(MAX)
FILESTREAM DEFAULT(0x)
go
--Add default add date for document
ALTER
TABLE dbo.DocumentFilesTest
ADD CONSTRAINT
DF_DocumentFilesTest_AddDate
DEFAULT sysdatetime()
FOR AddDate
EXEC
sp_fulltext_database
'enable'
GO
IF
NOT EXISTS
(SELECT
TOP 1 1 FROM sys.fulltext_catalogs
WHERE name
= 'Ducuments_Catalog_test')
BEGIN
EXEC sp_fulltext_catalog
'Ducuments_Catalog_test',
'create',
'D:\SQL\PDFBlob';
END
--EXEC sp_fulltext_catalog 'Ducuments_Catalog_test', 'drop'
DECLARE
@indexName nvarchar(255)
= (SELECT
Top 1 i.Name
from sys.indexes
i
Join sys.tables
t on
i.object_id
= t.object_id
WHERE t.Name
= 'DocumentFilesTest'
AND i.type_desc
= 'CLUSTERED')
PRINT @indexName
EXEC
sp_fulltext_table
'DocumentFilesTest',
'create',
'Ducuments_Catalog_test',
@indexName
EXEC
sp_fulltext_column
'DocumentFilesTest',
'FileSource',
'add', 0,
'Extension'
EXEC
sp_fulltext_table
'DocumentFilesTest',
'activate'
EXEC
sp_fulltext_catalog
'Ducuments_Catalog_test',
'start_full'
ALTER
FULLTEXT INDEX
ON [dbo].[DocumentFilesTest]
ENABLE
ALTER
FULLTEXT INDEX
ON [dbo].[DocumentFilesTest]
SET CHANGE_TRACKING
= AUTO
ALTER
FULLTEXT CATALOG
Ducuments_Catalog_test REBUILD
WITH ACCENT_SENSITIVITY=OFF;
INSERT
INTO DocumentFilesTest(Extension,
Name,
FileSource)
SELECT
'pdf'
'BOL12006553.pdf'
* FROM
OPENROWSET(BULK
'd:\SQL\PDFBlob\BOL12006553.pdf',
SINGLE_BLOB)
AS BLOB;
GO
INSERT
INTO DocumentFilesTest(Extension,
Name,
FileSource)
SELECT
'docx'
'test.docx'
* FROM
OPENROWSET(BULK
'd:\SQL\PDFBlob\test.docx',
SINGLE_BLOB)
AS Document;
GO
SELECT
d.*
FROM dbo.DocumentFilesTest
d WHERE
Contains(d.FileSource,
'BILL')
Returns nothing. it should come from PDF file
SELECT
d.*
FROM dbo.DocumentFilesTest
d WHERE
Contains(d.FileSource,
'TEST')
Returns from word document as follows:
2 2014-06-04 10:11:41.393 test.docx docx
NULL [BINARY Value] [Binary Value]
Any help is appreciated. Its been a long wait.
Thanks,
Vel
Vel ThavasiHello,
Did you check the fulltext log files for more details about the errors. If the filter isn’t working, there should be errors in the error log file.
The following thread is about similar issue, please refer to:
http://social.msdn.microsoft.com/forums/sqlserver/en-US/69535dbc-c7ef-402d-a347-d3d3e4860d72/sql-server-2008-64bit-fulltext-indexing-pdf-not-working-cant-find-ifilter
Regards,
Fanny Liu
If you have any feedback on our support, please click here.
Fanny Liu
TechNet Community Support -
Full-Text Search has not worked since we upgraded to 2012
I have a filestream database and table. Our full-text searches have always worked until we upgraded to SQL 2012 in December. Now, no file that has been uploaded since December is searchable. What has gone wrong here. It should have been
a clean upgrade. We are not getting any error messages. We are just not getting any records returned when we search on a word that we know are in the documents we've uploaded since December (for instance, the word 'aluminum').
Filestream is enabled for the instance.
A full-text catalog exists and contains a full-text index (the same one we've always had). Full-text indexing is ENABLED.
I've tried rebuilding the catalog and the index. I've tried to do a FULL POPULATION on the table.
We haven't changed our queries nor the way the files are uploaded.
Nothing works. I have been a database administrator since the SQL 2005 days and I have never seen anything like this.
Please help.Hi GINGER PIERCE,
Since the issue regards SQL Server Search. I will help you post the question in the related forums. It is appropriate and more experts will assist you.
According to your description, in theory , if you can do a full-text search for SQL Server 2008, when upgrading the SQL Server version from 2008 to 2012, the Full text indexing feature should be run well in SQL Server 2012 databases. If not , you can try
to restore your database from SQL Server 2008 to SQL Server 2012, create an new Full-Text Catalog and Index on the table or view in the database, and then use Full Text Index to search words, phrases and multiple forms of word or phrase via FREETEXT() and
CANTAINS() with “and” or “or” operators. check if it is normal that the full-text search feature is enabled in the SQL Server 2012 instance. For more information , see:
Full Text Search step by step in SQL Server 2012.
Note: In SQL Server 2012 SP1 , the server will report that Full Text Search is not supported in this edition of SQL Server when it clearly is. The workaround is to create the initial catalog by using a T-SQL query:
CREATE FULLTEXT CATALOG
In addition, since it is a fileStream database, we need to verify if you do Full Text Searches on documents in FileTables, if yes, you should enable FileStream database for your SQL Server, and enable FileTable options for the database. For more information,
see:
Full Text Searches on Documents in FileTables.
Regards,
Sofiya Li
If you have any feedback on our support, please click here.
Sofiya Li
TechNet Community Support -
E-Recruiment: Full Text Search Not Working
Hi Guys,
We have a problem with the integration of SAP E Recruitment and TREX Search Engine. Maybe someone can share their idees if same problems occured.
We have of course done investigations on SAP marketplace and the sdn community. In Fact the TREX is configured and works fine for searches with drop down selections, etc> When using full text search however no responses are shown. When performing searches on the indexes in TREX itself we have results on free texts.(as example Web Dynpro application Full Text Search )
Does anyone has a clue where to look? Of course customizing have been reviewed several times. Thanks in advance for any feedback.
Regards
ReginaldI am having the same problem but now in my case the RFC_PERIODICAL_SERVICES job keep running eventually we have to kill it..
It usually runs for less than a min but now it is running for hours..
I have reindex a few time and turn that job off when i was reindexing but still no resolution. Search works in trex admin tool but still not able to search threw website.
I openned up a high priority ticket with sap. Any suggestions would be great.. -
TREX/Content Server: Full text searches not working
I've setup TREX and Content Server in a sandbox environment and have been trying to get my head around DMS. I've completed what I've believed are the required steps (outlined below) and I have submitted 12 documents of various types into the respository. I'm able to perform meta data searches but not full text searched. Any ideas what I might have missed?
Much thanks!!!!
/Greg
0. Defined connection to TREX Server: TREX_42 (SM59); Using TREXADMIN all services are green.
1. "Define Document Area" - DMS is present; assumed I would use this one.
2. "Defined Indexing Readiness" - selected "Index Release" & "Classify" for DMS; set "Search Srv" to DMS_TEST
3. "Define Content Respository" - Created Z_CR_001 and maintained it as follows:
- Documentation Area: Document Management System
- Storage Type: HTTP content server
- HTTP Server: srv-sptxd2-dal.intervoice.int (content server)
- Port: 1090
- HTTP Script: ContentServer/ContentServer.dll
- Physical Path: /usr/sap/IRD/SYS/global/
4. "Define Content Categories" - Created ZCSSTRUCT; maintained as follows:
- Document Area: DMS
- Content Rep: Z_CR_001
5. Checked CSADMIN for Z_CR_001 - All Green
6. Went into SKPR07 (monitoring tab); entered DMS_PCD1 and "Indexing possible", "Auto indexing" and "DocArea activated" is all green.
7. Went into SMRO
- created SSR: "Search Server ID" = DMS_TEST, "Search engine" = DRFUZZY
- Verified "RFC Destinations"; passed tests; all green.
8. Went into SKPR07; using DMS_PCD1 as document class.
- executed "Clean up table entries"
- deselected "Limited to selected language"
- executed reindex. "Copied successfully from search engine"
- Selected the created index category
- Set the "Document area" indicator
- execute "Trigger process"; 12 documents referenced
9. Going into TREXADMIN I can see the created index; however the document count = 0. Also there is no queue created -- should there be?
Edited by: Greg Preston on Aug 5, 2009 9:11 PMDear
this link will help you,
TREX Architecture
http://help.sap.com/saphelp_erp60_sp/helpdata/EN/71/b26b2bfdc4eb47ab5432e8444290ce/content.htm
File Formats Supported by TREX
http://help.sap.com/saphelp_erp60_sp/helpdata/EN/55/cb634114b78047e10000000a1550b0/content.htm
Detail about TREX Configuration (Basic to advance)
http://help.sap.com/saphelp_erp60_sp/helpdata/EN/46/bab1d48b0a1514e10000000a114a6b/content.htm
Regards
Tushar Dave
Edited by: Tushar Dave on Aug 6, 2009 9:59 AM -
Full-Text Search is Enabled But It Is Not Working.
I Have Already Installed SQL SERVER 2008 ANd Full Text Search Is Also Running I Check It Via Query It Is Also Return !. Now What i M DO?????
Hello,
What's the database role of the current user? If it is not a a member of the db_owner, or db_ddladmin,
you must have CREATE FULLTEXT CATALOG permission on the database, or have REFERENCES permission on the full-text catalog and ALTER permission on the table or indexed view.
For example:
GRANT REFERENCES ON FULLTEXT CATALOG :: Catalog_name TO User ;
Reference:GRANT Full-Text Permissions
Regards,
Fanny Liu
Fanny Liu
TechNet Community Support -
Full-text search not available after upgrade from SQL 2008 R2 Std to SQL 2012 Std
We upgraded our production SQL Server from 2008 R2 Std to 2012 Std last week, and the installation logs show everything was successful, but now we are unable to do any searches against our full-text indexes. The resulting error is as follows:
"Full-Text Search is not installed, or a full-text component cannot be loaded."
When executing the query "SELECT FULLTEXTSERVICEPROPERTY('ISFULLTEXTINSTALLED')", the result is "0". The "Full-Text Daemon Launcher service is also running. When running installation again to add the feature, it shows
"Full-Text and Semantic Extractions for Search" as being installed and unavailable for selection in the list of features to add. As a side note, we did the same upgrade in our identical QA environment before production and everything was successful
and full-text searches are working correctly. We have run the "Repair" routine in the SQL Installation Center and it did not correct the problem.
The full-text catalogs still appear when browsing through the GUI in SSMS or querying sys.fulltext_indexes and sys.fulltext_index_columns. It is not possible to view the properties of the catalog in SSMS, though, as the GUI throws an error and an empty
dialog box is shown. Any other thoughts?
Thanks,
AJI have no idea what is going, but assuming that it is a little pressing to get this fix, I think the best path in this case is to open a case with Microsoft.
Erland Sommarskog, SQL Server MVP, [email protected] -
Is it possible to ignore noise words conditionally in working with Full text search containstable
I have a question on stoplist file. I need to search for exact phrase string("this is the incident") which contains noise words. As part of the FT search engine, during parsing it eliminates noise word and search on remaining string in
the given phrase.
let us say there are 10 rows which contains the term "incident" in the FT table . and 1 row which has the exact phrase.i.e."this is the incident".
if we use containstable() to search for "this is the incident", we are getting 10 rows instead of 1 row.
To resolve the issue, we have 3 solutions
1.either stoplist file needs to be modified to remove the words (this,is,the)
2. set stoplist = OFF.
3.empty stoplist.
Apart from the above solutions, is there any better solution with out touching noise words file list.
If any solution that provides flexibility to ignore noise words conditionally at one time and not to ignore them.
Please provide your suggestion.
kkprasadOne question that I ask is: Why would I want to exclude noise words?
Noise words were created to limit the size of the full text indexes and avoid processing the many 'this', 'is', and 'the' common words. But the disadvantage of doing so is that you cannot find some things as you would like.
My feeling is that computers are more powerful and have more storage and it is often better to just index everything. As long as your search does not include 'the', then the large number of 'the's in the system will pretty much be ignored.
NOTE: If you change the noise words, including SET STOPLIST = OFF, you have to rebuild the index in order for it to implement your decision.
Of course, for very, very large full text indexes you would need to test.
Is your full text search on relation database columns, e.g. Description NVARCHAR(1000) or are you searching Word, Excel, and other more complex data?
If your full text is relational columns, it might be that you could:
1. Select only the fulltextkey into a temp table (e.g. #FTSfulltextkey) from the full text index using noise words. That would give you 10 rows.
2. Then directly query the table to find the string as you define above. (But remember that punctuation and symbols are generally ignored by Full Text Indexing, but would still be there in the string of text.)
SELECT *
FROM MyTextTable T
JOIN #FTSfulltextkey K
ON T.fulltextkey = k.fulltextkey
WHERE T.Description like '%this is the incident%'
Full text search is powerful, but it has limits. And the behaviour changes depending on the Language of the search.
RLF -
Problems using and configuring Oracle 10gR2 database full-text search
I am having problems trying to set up full-text indexing and search with Universal Content Management (UCM). I followed the Oracle Content Server Installation Guide for windows at [http://download-west.oracle.com/docs/cd/E10316_01/cs/cs_doc_10/documentation/integrator/install_cserver_win_10en.pdf].
What I did was:
1. Modify E:\oracle\ucm\server\config\config.cfg by adding SearchIndexerEngineName=DATABASE.FULLTEXT to the end of the file.
2. Restart the content server.
3. Rebuild the search indexing using Repository Manager.
However, I keep seeing the following error when I query by entering words in the "Full-Text Search" box.
Unable to retrieve search results. Unable to retrieve search results. Unable to create result set for query 'SELECT IdcColl1.dID, dDocName, dDocTitle, dDocType, dRevisionID, dSecurityGroup, dDocAuthor, dDocAccount, dRevLabel, dFormat, dOriginalName, dExtension, dWebExtension, dInDate, dOutDate, dCreateDate, dPublishType, dRendition1, dRendition2, VaultFileSize, WebFileSize, URL, dFullTextFormat, dFullTextCharset, DocMeta.*
FROM IdcColl1, DocMeta
WHERE IdcColl1.dID=DocMeta.dID AND (((CONTAINS(dDocFullText,'test') > 0 ))) ORDER BY dInDate Desc'. ORA-20000: Oracle Text error:
DRG-10599: column is not indexed
Some web searches suggested the following (all of which I have tried but not resolved this problem).
1. Publish the schema using Configuration Manager (applet) and then rebuild index
2. Set the dDocFullText as a "zone field". This is not possible, because dDocFullText does not show up under the list of fields under "Database" or "DatabaseFullText" for the Search Engine drop down (when using Zone Fields Configuration).
3. Reboot the server (did not work either).
I logged onto the Oracle database and checked the IdcColl1 table. There is indeed, no index for the field, dDocFullText. There is only 1 index for the field, did. The field, dDocFullText, is a BLOB. The question is, if I am supposed to create an index manually for this field, how would I do it? A web search has not been fruitful in answering this question.
Here are my server settings.
For UCM:
Operating System: Windows 2003 Enterprise
UCM : 10gR3
Memory: 1 GB
Web Server: Apache 2.2.11
For Oracle:
Operating System: Windows 2003 Enterprise
Oracle: 10gR2
Memory: 1 GB
Thanks.I found out what the problem was. The problem was that I had to create the role, stellent_role, as described in the installation manual. After I created this role and assigned the database user to this role, a restart of the Content Server services and collection rebuild of the index fixed the problem.
However, I did notice one thing. I checked in 3 PDF files, and when I used Repository Manager to do a collection rebuild, I noticed that for Indexer Counters, the count for Full Text was 0 and the count for Meta Only was 3.
Anyone have any ideas? Is there something else that I missed? From reading the installation manual, it was not clear how database full-text indexing/searching would handle PDF files. -
TREX Full-Text search on Solution Directory
Hi Experts,
I have a problem with Full-Text search on the Solution Directory. Basically it doesn't work at all.
In transaction SOLUTION_MANAGER I choose a solution and then ->Operation Setup -> Solution Settings. At that point from the top menu I choose Solution Directory -> Find Document...
When I trigger the search using normal attributes the process finds documents related to this Solution without any problem. However, when I search using the "Full-Text Search" feature, the process doesn't find any document at all even though they exist.
Why is this functionality not working? Is this problem related to TREX?
What should i do to fix it? How do I create an index for these documents?
I haven't been able to solve this issue as TREX seams to work fine... can anybody help me out?
Any idea?
Many thanks,
AldoDavid:
I want to know if Oracle Context Option to need run over Oracle Application Server for to work search over multiple tables???
Exist some method for this (Context) run without to use Oracle Application Server???
select * from table_name where
contains(column_name1, 'keywords')>0 AND
contains(column_name2, 'keywords')>0However, using the Concatenated Datastore to create one index that has all the columns to be searched as sections will get better performance, since your query then only needs to use one contains statement across one index.
select * from table_name where
contains(indexed_column_name,
'(keywords WITHIN section_name1) AND
(keywords WITHIN section_name2) AND
keyords')>0Note: The last keyword in this query is so you search the indexed column as well, which is not a section. You could also create a dummy column to create the index on, and make all columns to search sections of that.
Cheers
David<HR></BLOCKQUOTE>
null -
Full text search in a dynamic table
Hi all,
Can any one tell me how to do a full text search in a dynamic(ie. always have INSERT or DELETE action) table? I created a context index on the column which data type is LONG. But I can't get search results for those records that I inserted new data after Creating index.
Thanks a lot!David:
I want to know if Oracle Context Option to need run over Oracle Application Server for to work search over multiple tables???
Exist some method for this (Context) run without to use Oracle Application Server???
select * from table_name where
contains(column_name1, 'keywords')>0 AND
contains(column_name2, 'keywords')>0However, using the Concatenated Datastore to create one index that has all the columns to be searched as sections will get better performance, since your query then only needs to use one contains statement across one index.
select * from table_name where
contains(indexed_column_name,
'(keywords WITHIN section_name1) AND
(keywords WITHIN section_name2) AND
keyords')>0Note: The last keyword in this query is so you search the indexed column as well, which is not a section. You could also create a dummy column to create the index on, and make all columns to search sections of that.
Cheers
David<HR></BLOCKQUOTE>
null -
Clarifications needed for full text search
Hi,
I need some clarification regarding full text search.
1) Is japanese part of the standard Oracle full text search?
2) if it is not, how to install the japanese lexer?
3) how oracle is sorting international characters. If a column contains both english, japanese and french, how will be the output?
Thanks
MuneerFollwoing is the sql statement and the result i got
select language, description,lengthb(description) bytes, length(description) length, vsize(description) vsize from t2;
LANGUAGE DESCRIPTION BYTES LENGTH VSIZE
English abcdefghij 10 10 10
English zyxwvutsrq 10 10 10
French désignéess 16 12 16
French réconcilia 13 11 13
German Einfuhrzöl 13 11 13
German müÃtämpfer 19 13 19
Greek δημοÏιογÏα 40 20 40
Greek αÏοκλειÏÏι 42 20 42
Russian пÑеÑÑÑпник 42 20 42
Russian пÑÐ¸Ð²ÐµÐ´ÐµÐ½Ð¸Ñ 41 20 41
Japanese å ¥éå¸ã®ä¼ç¤¾ã®éè¡å£ 65 30 65
Japanese ç¥æ¸å¸ä¸å¤®åºã®æ±éå 62 30 62
Korean ì¶ë°ì ë¶í°ì¶ë°ì ë¶í° 64 30 64
Korean ë³´ì¢ê´ìì¶ë°ì ë¶í°ê²½ 64 30 64
Hindi à¤à¤¤à¤à¤¨à¤¤à¤®à¤¨à¤à¤¤à¤¶à¥à¤° 73 36 73
Hindi नà¥à¤à¥à¤¨à¥à¤à¥à¤¨à¥à¤à¥à¤¨à¥à¤à¥à¤¨à¥à¤à¥ 130 60 130 I think it explains a lot. I am facing another problem in searching blob columns when it contains japanese or korean characters. I tried with multi lexer (adding japanese as sub lexer and making english as default lexer). But it is not searching the column. Do i have to set any other parameters (editing registry, changing enviornment setting etc). I used the following script to set the lexer.
begin
ctx_ddl.create_preference('english_lexer','basic_lexer');
ctx_ddl.set_attribute('english_lexer','index_themes','yes');
ctx_ddl.set_attribute('english_lexer','theme_language','english');
ctx_ddl.create_preference('german_lexer','basic_lexer');
ctx_ddl.set_attribute('german_lexer','composite','german');
ctx_ddl.set_attribute('german_lexer','mixed_case','yes');
ctx_ddl.set_attribute('german_lexer','alternate_spelling','german');
ctx_ddl.create_preference('japanese_lexer','japanese_vgram_lexer');
ctx_ddl.create_preference('korean_lexer','KOREAN_MORPH_LEXER');
ctx_ddl.set_attribute('korean_lexer','COMPOSITE','NGRAM');
ctx_ddl.create_preference('global_lexer', 'multi_lexer');
ctx_ddl.add_sub_lexer('global_lexer','default','english_lexer');
ctx_ddl.add_sub_lexer('global_lexer','german','german_lexer','ger');
ctx_ddl.add_sub_lexer('global_lexer','japanese','japanese_lexer','jpn');
ctx_ddl.add_sub_lexer('global_lexer','korean','Korean_lexer');
end;Hope i presented enough details.
Maybe you are looking for
-
Re: creating zoom for my canvas
HI I am trying to add zoom feature to the canvas which is the super class of the class zoom. As you can see when you run the code below. I have partially succeded in zooming in and zooming out with mouse drag. Although, the shapes dont zoom about the
-
More ?undocumented? features in BDB 5.1.19
I would love to read documentation about these following features, documented in http://download.oracle.com/docs/cd/E17076_02/html/installation/changelog_5_1.html Added the ability to specify that data should not be logged when removing pages from a
-
Since yesterdy, on my iPod 5G, 30 GB the game "Sudoku" starts with an error message (translated from German): "Sudoku can not be startet. Please install and start again". I did install it serveral times without any success. At the beginning (for more
-
Hi Experts, I am basically SAP workflow & ABAP technical consultant. I am interested to learn PLM module of SAP, atleast the basic concept first. Can anyone please suggest me some useful link. Thanks, Sonali.
-
Hi, In customized PO release strategy workflow processing is not completed in each level.[Its showing 'in process' status]. Only i customized added container operation step[Tried both inside the folk step and tried after the folk]Both places process