lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Deepak Shakya <just...@gmail.com>
Subject Re: QueryParser and BooleanQuery
Date Thu, 26 Jul 2012 13:36:29 GMT
Hi Trejkaz,

I am using the Standard Analyzer for my indexing. Can you provide an
example with which I can use the BooleanQuery to add both the fields in the
same forms and yet the documents are searched?

I would be really grateful if you can provide example for parsing the text
as well which is passed to the fields while I am searching.

On Tue, Jul 24, 2012 at 3:31 AM, Trejkaz <trejkaz@trypticon.org> wrote:

> 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
>
>


-- 
With Regards,
Deepak Shakya
http://www.google.com/profiles/justdpk

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message