[prev in list] [next in list] [prev in thread] [next in thread] 

List:       lucene-user
Subject:    Re: QueryParser question
From:       Erik Hatcher <erik () ehatchersolutions ! com>
Date:       2004-06-30 17:12:59
Message-ID: BCDE8E6A-CAB8-11D8-817F-000393A564E6 () ehatchersolutions ! com
[Download RAW message or body]

I've seen mention of "demo3" but I'm not sure what that is referring 
to.  Where is the code for demo3 located?

But generally speaking, you wouldn't create two different query objects 
to search and then to highlight, you'd use the same one for both.

	Erik


On Jun 29, 2004, at 3:40 PM, Hetan Shah wrote:
> I am trying to tie the highlighter sample code with demo3 of the 
> distribution.
>
> There is one place where I think I am stuck. The code in demo3 has
> query = QueryParser.parse(String query, String field, String 
> analyzer); and the highlighter sample code uses a subclass of query 
> which is PhraseQuery and then adds new terms
> PhraseQuery query = new PhraseQuery();
> query.add(new Term("f", "text"));
>
> Is there a way to work this around, so that I do not have to create 
> two different query objects?
>
> Please help.
>
> Thanks you guys, you have been best.
> -H
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: lucene-user-help@jakarta.apache.org


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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic