lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Trejkaz <>
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 <> 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.


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

View raw message