Hello,
Sorry for any cross-posting annoyance. I have a request for a
Greenstone collection I'm working on, to add context snippets to search
results; for example a search for yak culture might return this in the
list of results:
... addressing the fine points of strongyak culture/strong,
The Lucene Highlighter doesn't require that the text you want
highlighted be stored. In fact, you can pass in any arbitrary text to
the Highlighter.
See the various getBestFragments from the Highlighter class:
Erik Hatcher wrote:
The Lucene Highlighter doesn't require that the text you want
highlighted be stored. In fact, you can pass in any arbitrary text to
the Highlighter.
Thanks Erik,
What I'm looking for is to return the context of the search result, not
just the ID of the containing
On Sep 29, 2009, at 7:33 AM, Yitzchak Schaffer wrote:
Erik Hatcher wrote:
The Lucene Highlighter doesn't require that the text you want
highlighted be stored. In fact, you can pass in any arbitrary text
to the Highlighter.
Thanks Erik,
What I'm looking for is to return the context of
Erik Hatcher wrote:
I'm a bit confused then. You mentioned that somehow Zend Lucene was
going to help, but if you don't have the text to highlight anywhere then
the Highlighter isn't going to be of any use. Again, you don't need the
full text in the Lucene index, but you do need it get it
Yitzchak, are you interested in actually searching the fulltext? Or just
highlighting the terms?
If you're only interested in highlighting it, it might be a whole lot easier
to implement this in javascript through something like jQuery:
Ross Singer wrote:
Yitzchak, are you interested in actually searching the fulltext? Or just
highlighting the terms?
Sorry this wasn't clearer. Let me re-summarize, and report on a new
development:
- Greenstone allows for Lucene as one of the indexing plugins
- I took advantage of this
Ross Singer wrote:
Yitzchak, are you interested in actually searching the fulltext? Or just
highlighting the terms?
Just in case my earlier response didn't make it crystal clear: we're
trying to search the fulltext, and put the search string in context
within the document which includes it.