lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sujatha Das <>
Subject Re: proximity search in lucene (fwd)
Date Wed, 11 May 2005 10:08:19 GMT

> ---------- Forwarded message ----------
> Date: Fri, 1 Apr 2005 15:34:10 -0500
> From: Erik Hatcher <>
> Reply-To:
> To:
> 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:
For additional commands, e-mail:

View raw message