Rupinder Singh Mazara writes: > hi erik and everyone else > > ok i will buy the book ;) > but this still does not solve the problem of > why String x = "\"jakarta apache\"~100"; is being transalted as a > PhraseQuery > FULL_TEXT:"jakarta apache"~100 > > is the correct query beining formed ? or is there something wrong with the > Proximity Search topic in the URL > http://jakarta.apache.org/lucene/docs/queryparsersyntax.html > A proximity search is done by a PhraseQuery with a slop. The slop makes the PhraseQuery to perform a proximity search (so you can argue that the name is problematic). That's what query parser creates.
SpanQueries where introduced later. Maybe you can get the effect of a proximity search by SpanQueries also, but that's not handled by the query parser. Morus --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]