Re: multi-field highlighting

2005-05-06 Thread Martin Haye
As part of my work on XTF for the California Digital Library, I've written such a highlighter. You can see it in action here: http://texts.cdlib.org/escholarship/ It supports multi-field highlighting, and ranks the matches within a document field. It highlights the extent of the actual

Re: multi-field highlighting

2005-05-06 Thread Martin Haye
Hi Mark, Thanks very much for your comments. > It looks like all queries on the site have to be a span of some > kind (ie all search terms must appear in the document). Is your > highlighting code applicable to other modes of querying? In a sense you're correct, in that the system relies on all

Re: Custom "multi term" SpanQuery subclass issue

2005-09-14 Thread Martin Haye
I had to make changes like this to get my own SpanRangeQuery and SpanWildcardQuery to work properly in the larger context. Adding the rewrite methods wasn't too hard. --Martin On 9/14/05, Erik Hatcher <[EMAIL PROTECTED]> wrote: > > I'm implementing a custom SpanQuery subclass that expands into

Re: Custom "multi term" SpanQuery subclass issue

2005-09-15 Thread Martin Haye
While I'd certainly have been willing to submit mine as a patch, yours is more elegant. I like the use of clone(), and I see now that other rewrite methods do it that way now (maybe they always did). --Martin On 9/15/05, Erik Hatcher <[EMAIL PROTECTED]> wrote: > > I just added an overridden r

Re: Highlighter using spans

2005-11-14 Thread Martin Haye
I might mention that, if you're converting your query to spans anyway, you could avoid running it twice (once over the document set, another time for highlighting) by using it as a main query and recording the spans as you go along. I'm not sure this is better, but it's what XTF uses. --Martin O