lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Erick Erickson" <>
Subject Re: Complex proximity clauses within Lucene QueryParser
Date Sun, 05 Aug 2007 01:07:34 GMT
I'm not sure the native syntax supports this idea, but I'm pretty sure
you could construct it yourself with the appropriate SpanQuery
sub-clauses. You'd have to deal with your own parsing of the input

Also, check the SrndQuery class, I'm pretty this will work, but be aware
that it has its own syntax that you have to get accustomed to.

You'll probably need to search the archives for discussions of this. I know
I had a lengthy exchange (see the thread "wildcard and span queries") that
was enlightening.


On 8/4/07, tierecke <> wrote:
> Hi,
> I got stuck with a complex proximity clause - and would be grateful to get
> your help.
> Does Lucene allow, and if yes: what is the syntax?
> * Proximity between two phrases, for instance a within n1 words from b
> which
> is within n2 words from c?
> * subclauses - for instance (a or b) within n words from (b* or c)?
> * "a b" within n words from "c d"?
> that would help immensely.
> best regards from Amsterdam,
> Nir.
> --
> View this message in context:
> Sent from the Lucene - Java Users mailing list archive at
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message