[prev in list] [next in list] [prev in thread] [next in thread]
List: lucene-user
Subject: RE: Using the highlighter from the sandbox with a prefix query.
From: "Michael Celona" <mcelona () criticalmention ! com>
Date: 2005-02-21 15:20:56
Message-ID: 20050221152055.6A258167AE () mail01 ! nyc-ofc ! criticalmention ! com
[Download RAW message or body]
I am using
query = searcher.rewrite( query );
and it is throwing java.lang.UnsupportedOperationException .
Am I able to use the searcher rewrite method like this?
Thanks,
Michael
-----Original Message-----
From: Daniel Naber [mailto:daniel.naber@t-online.de]
Sent: Thursday, February 17, 2005 4:09 AM
To: Lucene Users List
Subject: Re: Using the highlighter from the sandbox with a prefix query.
On Thursday 17 February 2005 08:37, lucuser4851 wrote:
> We have been using the highlighter from the lucene sandbox, which works
> very nicely most of the time. However when we try and use it with a
> prefix query (which is what you get having parsed a wild-card query), it
> doesn't return any highlighted sections. Has anyone else experienced
> this problem, or found a way around it?
You need to call rewrite() on the query before you pass it to the
highlighter.
Regards
Daniel
---------------------------------------------------------------------
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