lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From flaiz <>
Subject Surround QueryParser and PhraseQuery
Date Fri, 28 May 2010 13:31:19 GMT


I'm having problem with searching phrase and using Surround Query Parser, so
let look at input surround queries (test examples)
   1. "yellow orange"
   2. lemon 2n ("yellow orange") 4n banana
where 2n, 4n are within connectors.

You see I surrounded yellow orange into quotes to let the parser know this
is PhraseQuery, but unfortunately the parser does not support PhraseQuery at
all. Could you please advice some workaround for such situation? How I
should handle such queries to get results from an index? I believe this is
common problem and there already is some solution.....

I'm using Lucene version 2.9.1.

View this message in context:
Sent from the Lucene - Java Users mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message