lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ahmet Arslan <>
Subject Re: Surround QueryParser and PhraseQuery
Date Fri, 28 May 2010 20:02:31 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 don't need phrasequery when you already have spannearquery.

surround equivalent of "yellow orange" is yellow w orange

lemon 2n ("yellow orange") 4n banana => lemon 2n (yellow w orange) 4n banana


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

View raw message