lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Murray Altheim <>
Subject Question on showing excerpts
Date Tue, 02 Nov 2004 05:02:49 GMT
[I'm gathering that the consensus on the PorterStemmer is to deprecate
the existing one in favour of using Snowball, so I've dropped the issue.]

Another questio: the Lucene FAQ includes this question:

  35. How can I show excerpts with the hit results? How about
      highlighting the matched words?

I'm interested in showing excerpts if the amount of effort isn't
enormous, and while I understand that for each document type the
results will be different, what I'm wondering is how to locate the
offsets within each search result that indicate the locations of
each hit within the searched document, so that I won't have to
duplicate Lucene's existing efforts in creating the excerpt.

Where might I find in the Lucene API or code the hooks I need?
Is this information readily available, or is it buried within
the engine or the index?

Sorry if this is obvious -- I couldn't locate it. And thanks
very much for any assistance (and no rush at all...).


Murray Altheim          
Knowledge Media Institute
The Open University, Milton Keynes, Bucks, MK7 6AA, UK               .

   The Rise of Pseudo Fascism -- David Neiwert
   Part 1: The Morphing of the Conservative Movement
   Part 2: The Architecture of Fascism
   Part 3: The Pseudo-Fascist Campaign
   Part 4: The Apocalyptic One-Party State
   Part 5: Warfare By Other Means
   Part 6: Breaking Down the Barriers
   Part 7: It Can Happen Here

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message