Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: Need Help For Search Engine...
Hi, your posting is a little vague on the detail such as Oracle version
and functionality required. To point to the appropriate documentation
resource, I suggest you look at the Oracle docs for Intermedia/Oracle
text.
However I have included a sample script below to put to on the right track. The script trace demonstrates some of the more simple functionality available and will hopefully assist you in determining whether this is the appropriate technology for your requirement.
Regards
Mike
TESSELLA Michael.OShea_at_tessella.com
__/__/__/ Tessella Support Services plc __/__/__/ 3 Vineyard Chambers, ABINGDON, OX14 3PX, England __/__/__/ Tel: (44)(0)1235-555511 Fax: (44)(0)1235-553301www.tessella.com Registered in England No. 1466429
SQL> SQL> SQL> CREATE TABLE tblYourStuff(id NUMBER PRIMARY KEY,doc2searchVARCHAR2(100)); Table created.
SQL> INSERT INTO tblYourStuff(id,doc2search) 2 VALUES(1,'Oracle Queries and Solutions');
1 row created.
SQL> INSERT INTO tblYourStuff(id,doc2search) 2 VALUES(2,'The column doc2search can also be clob blob etc');
1 row created.
SQL> INSERT INTO tblYourStuff(id,doc2search) 2 VALUES(3,'and contain Adobe files, Word files, XML etc');
1 row created.
SQL> INSERT INTO tblYourStuff(id,doc2search) 2 VALUES(4,'The Oracle books are a good place to start for more detail');
1 row created.
SQL> INSERT INTO tblYourStuff(id,doc2search) 2 VALUES(5,'Read up on the LEXER and STOPWORDS too because');
1 row created.
SQL> INSERT INTO tblYourStuff(id,doc2search) 2 VALUES(6,'the text may not be indexed as you intuitively think');
1 row created.
SQL> INSERT INTO tblYourStuff(id,doc2search) 2 VALUES(7,'look for keywords near, progressions, score, ');
1 row created.
SQL> INSERT INTO tblYourStuff(id,doc2search) 2 VALUES(8,'for hit relevance/scoring and word proximity');
1 row created.
SQL> SQL> SQL> CREATE INDEX idxYourStuff 2 ON tblYourStuff(doc2search) 3 INDEXTYPE IS CTXSYS.CONTEXT 4 PARAMETERS('SYNC(ON COMMIT)');
Index created.
SQL>
SQL> COMMIT;
Commit complete.
SQL> SQL> SQL> --All your words (note the search word order) SQL> SELECT id
ID
1
SQL> SQL> --All your words (note the serch word order) SQL> SELECT id
ID
1
SQL> SQL> --One of your words SQL> SELECT id
ID
1
4
SQL> SQL> --Hits with any of the words SQL> SELECT id
ID
1
4
5
SQL> SQL> SQL> SELECT *
SQL> SPOOL OFF
Original Message: Ariji Chatterjee <arijitchatterjee123_at_yahoo.co.in>
Date: 26 February 2005 09:32
Newsgroup: comp.databases.oracle.server
Subject: Need Help For Search Engine...
Dear Faculties,
I am going to incorporate a search engine in oracle with VB front
end.Now I need a guidance...
Scenario: