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 <trej...@trypticon.org> wrote:

> On Mon, Jul 23, 2012 at 10:16 PM, Deepak Shakya <just...@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-unsubscr...@lucene.apache.org
> For additional commands, e-mail: java-user-h...@lucene.apache.org
>
>


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

Reply via email to