Hi In Lucene 3.x, for search word with special characters, phrase query is formed.
For eg: For input *google-chrome-stable*, query formed as "google chrome stable". But in Lucene 6.x, I can't achieve this. Is there any way to achieve it? On Mon, Jul 31, 2017 at 2:53 PM, krish mohan <krishmohan1...@gmail.com> wrote: > Correction in link. QueryParser(Version matchVersion, String f, Analyzer > a) > <https://lucene.apache.org/core/3_0_3/api/core/org/apache/lucene/queryParser/QueryParser.html#QueryParser(org.apache.lucene.util.Version,%20java.lang.String,%20org.apache.lucene.analysis.Analyzer)> > > On Mon, Jul 31, 2017 at 2:50 PM, krish mohan <krishmohan1...@gmail.com> > wrote: > >> Hi >> I'm using Lucene 4.10.4. QueryParser in LUCENE_30 forms phrase query >> for input with special characers ($,/,-,...) >> >> For eg: >> For input *google-chrome-stable*, query formed as "google >> chrome stable". >> >> Using QueryParser(Version matchVersion, String f, Analyzer a) >> <https://lucene.apache.org/core/3_0_3/api/core/org/apache/lucene/util/Version.html> >> , >> I pass the version as LUCENE_30 and achieved this behavior. >> >> But in Lucene 6.x this constructor is removed. Is there any way >> to achieve this in Lucene 6.x ? >> > >