From lucene-user Thu Feb 17 09:08:48 2005 From: Daniel Naber Date: Thu, 17 Feb 2005 09:08:48 +0000 To: lucene-user Subject: Re: Using the highlighter from the sandbox with a prefix query. Message-Id: <200502171008.48160.daniel.naber () t-online ! de> X-MARC-Message: https://marc.info/?l=lucene-user&m=110863133825938 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