I use the Lucene.NET implementation. (2.3)
There is a Lucene.Net.Search.Spans.SpanScorer class, but it's not public I
assume I'd have to use it as a base class for my own.

Do you have a simple example on how, in Java, to use the SpanScorer to get a
highlighter to return only fragments that are part of the phrase in the
Query?

Ian



On Mon, Dec 8, 2008 at 8:28 AM, Mark Miller <markrmil...@gmail.com> wrote:

> Ian Vink wrote:
>
>> Is there a way to get phrases counted in the list of fragments that come
>> back from Highlighter.GetBestFragments() in general.
>> It seems to only take words into account.
>>
>> Ian
>>
>>
>>
> Not sure I fully understand, but have you tried the SpanScorer? It allows
> the Highlighter to work with phrase/span queries.
>
> - Mark
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
> For additional commands, e-mail: java-user-h...@lucene.apache.org
>
>

Reply via email to