Sorry, I wasn't specific enough. I meant the SpanScorer in the contrib highlighter package - they are very different.

I assume the latest Highlighter package has been ported to Lucene .NET, but if not I know of a guy that ported the SpanScorer stuff to C# a while back. I might be able to get my hands on that still, though it may be dated now. First check the highlighter contrib
and see if its there though.

- Mark

Ian Vink wrote:
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





---------------------------------------------------------------------
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