lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Trejkaz <trej...@trypticon.org>
Subject Re: QueryParser and BooleanQuery
Date Mon, 23 Jul 2012 22:01:03 GMT
On Mon, Jul 23, 2012 at 10:16 PM, Deepak Shakya <justdpk@gmail.com> wrote:
> Hey Jack,
>
> Can you let me know how should I do that? I am using the Lucene 3.6 version
> and I dont see any parse() method for StandardAnalyzer.

In your case, presumably at indexing time you should be using a
PerFieldAnalyzerWrapper with cs-uri getting a KeywordAnalyser.

If you pass that analyser in when you construct the QueryParser, it
won't remove the slash.

The main thing is that you should use the same analyser for indexing
and searching.

TX

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message