Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: InterMedia 'NEAR' operator
In interMedia Text, the NEAR operator uses the word proximity
information calculated at the time of indexing.
Per the documentation, the NEAR operator is used "to return a score based on the proximity of two or more query terms." In this case, query terms means words and not phrases.
http://technet.oracle.com/doc/inter.815/a67843/cqoper.htm#27445
Hope this helps.
On Mon, 21 Feb 2000 15:49:52 +0800, "Eugene Ng" <eugeneng_at_asiansources.com> wrote:
>Hi all,
>
>I've encountered an abnormal behaviour using NEAR (;) in
>Intermedia....here's the problem....
>
>SELECT score(1), adv_prod_id, prod_name, prod_description from adv_products
>where (contains (prod_description, '$SYN(Mobile Phone,mythes);$SYN(Battery
>Charger,mythes)',1) > 1) order by score(1) desc
>
>Apparently this query will return an error, but ....
>
>SELECT score(1), adv_prod_id, prod_name, prod_description from adv_products
>where (contains (prod_description, '$SYN(Mobile,mythes);$SYN(Phone Battery
>Charger,mythes)',1) > 1) order by score(1) desc
>
>This appears to work properly.
>IMHO, it seems like the first term cannot be a phrase.......
>
>Anyone out there can help???
>
>
>
Thanks!
Joel
Joel R. Kallman Oracle Service Industries
Columbus, OH http://govt.us.oracle.com jkallman@us.oracle.com http://www.oracle.com