You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by "Zhang, Lisheng" <Li...@BroadVision.com> on 2013/02/08 21:16:38 UTC
Solr query parser, needs to call setAutoGeneratePhraseQueries(true)
Hi,
In our application we need to call method
setAutoGeneratePhraseQueries(true)
on lucene QueryParser, this is the way used to work in earlier versions
and it seems to me that is the much natural way?
But in current solr 3.6.1, the only way to do so is to set
<luceneMatchVersion>LUCENE_30</luceneMatchVersion>
in solrconfig.xml (if I read souce code correctly), but I donot want to
do so because this will change the whole behavior of lucene, and I only
want to change this query parser behavior, not other lucene features?
Please guide me if there is a better way other than to change solr source
code?
Thanks very much for helps, Lisheng
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org
RE: Solr query parser, needs to call setAutoGeneratePhraseQueries(true)
Posted by "Zhang, Lisheng" <Li...@BroadVision.com>.
I am very sorry, I should have sent to solr user group, not lucene!!
Best regards, Lisheng
-----Original Message-----
From: Zhang, Lisheng
Sent: Friday, February 08, 2013 12:17 PM
To: 'java-user@lucene.apache.org'
Subject: Solr query parser, needs to call
setAutoGeneratePhraseQueries(true)
Hi,
In our application we need to call method
setAutoGeneratePhraseQueries(true)
on lucene QueryParser, this is the way used to work in earlier versions
and it seems to me that is the much natural way?
But in current solr 3.6.1, the only way to do so is to set
<luceneMatchVersion>LUCENE_30</luceneMatchVersion>
in solrconfig.xml (if I read souce code correctly), but I donot want to
do so because this will change the whole behavior of lucene, and I only
want to change this query parser behavior, not other lucene features?
Please guide me if there is a better way other than to change solr source
code?
Thanks very much for helps, Lisheng
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org