Re: Complex proximity clauses within Lucene QueryParser

2007-08-04 Thread Mark Miller
You might check out Qsol: http://myhardshadow.com/qsol.php It is my attempt at just such a parser. Some of that logic can be open to a bit of interpretation (spans vs nonspans). - Mark tierecke wrote: Hi, I got stuck with a complex proximity clause - and would be grateful to get your help.

Re: Complex proximity clauses within Lucene QueryParser

2007-08-04 Thread Erick Erickson
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 though. Also, check the SrndQuery class, I'm pretty this will work, but be aware that it has its

Complex proximity clauses within Lucene QueryParser

2007-08-04 Thread tierecke
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 word