Hi,---------- Forwarded message ---------- Date: Fri, 1 Apr 2005 15:34:10 -0500 From: Erik Hatcher <[EMAIL PROTECTED]> Reply-To: java-user@lucene.apache.org To: java-user@lucene.apache.org Subject: Re: proximity search in lucene
On Apr 1, 2005, at 2:29 PM, Sujatha Das wrote:
Hi,
Does Lucene support "SpanNear" or phrase queries where the clauses or terms are not of the same field?
If not, could someone let me know which is the way to support proximity searches with terms belonging to different fields.
No, it does not support cross-field proximity. I'm not even remotely understanding what that would even mean. Could you provide an example of what you're after?
Erik
Sorry abt the extremely delayed response.
Consider a situation in which i have indexed the terms under two different
fields (say FIELD_TEXT and FIELD_SYNONYM).
What if I wanted to support queries like
"jaguar NEAR london", when i have indexed a document with
"panthers in zoos around London". So given that Lucene doesn't support cross-field proximity, this can't be done easily?
Thanks much. Sujatha Das
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]