Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: Oracle 8i Intermedia and OLE
Try
SELECT primary_key_column id, ctxsys.score(1) score FROM table t WHERE ctxsys.contains(blob_column, ‘John’, 1) > 0 ORDER BY score DESC;
to get the documents identified by the primary_key and ordered by number of hits. Also try a better keyword than 'John' - I think by default this would have been indexed using the default preference, but am not sure. Do NOT use a noise word, such as I, is, the, a, and - as these are not indexed by default.
To review, you should have done something like the following before this
If you have any errors at this stage, check that
You should see the index name, the name of the table, the primary_key_column name, the blob column name, the number of documents indexed, and the current status of the index (INDEXED).
Then Bob should be your mothers brother....
knudaage_at_my-deja.com wrote:
>
> Hi,
> I’ve (at last) successfully created an intermedia index at my Oracle
> 8.1.5.0.0 Enterprise. A table with a BLOB-column stores OLE2-objects,
> and I tried to create ctxsys.context (index) with both a NULL_FILTER
> and a INSO_FILTER on the blob-column, but I have no hits when trying to
> select count(*) from object_table where contains(blob_column, ‘John’);
> And I KNOW there should be some hits, there are over 500 MS-Word-
> documents.
>
> How can that be?
>
> Regards
> Mads Poulsen
>
> knudaage_at_hotmail.com
>
> Sent via Deja.com http://www.deja.com/
> Share what you know. Learn what you don't.
--
Regards,
Mark Townsend
Senior Product Manager Ph: (650) 633 5764 Server Division Fx: (650) 506 7222 Oracle Corporation Email: mtownsen_at_us.oracle.comReceived on Wed Sep 22 1999 - 19:27:12 CDT
![]() |
![]() |