question about QueryParser's method setAutoGeneratePhraseQueries()

2016-12-04 Thread Gang Li
Hi everyone, I'm trying to make the QueryParser parse a raw query without quotes into a phrase query by default, and according to Lucene doc it seems I can use the method setAutoGeneratePhraseQueries(). ( http://lucene.apache.org/core/6_2_0/queryparser/org/apache/lucene/queryparser/classic/QueryPa

Re: question about QueryParser's method setAutoGeneratePhraseQueries()

2016-12-07 Thread Gang Li
> A workaround: insert quotation marks at the start and end of the query. > > -- > Steve > www.lucidworks.com > > > On Dec 4, 2016, at 4:39 PM, Gang Li wrote: > > > > Hi everyone, > > > > I'm trying to make the QueryParser parse a raw query w