lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Hostetter <hossman_luc...@fucit.org>
Subject Re: Highlight - get terms used by lucene
Date Thu, 27 Mar 2008 06:36:34 GMT

: we use highlighting and snippets for our searches. Besides those two, I 
: would want to have a list of terms that lucene used for the 
: highlighting, so that I can pull out of a "Tim OR Antwerpen AND Ekeren" 
: the following terms : Antwerpen, Ekeren if let's say these are the only 
: terms that gave results ...

the closest you can get is the "explain" info in the debugging output.

currently that comes back as a big string you would need to parse, but 
since the topic of progromaticly accessing that data seems to have come up 
quite a bit more then i ever really expected, i will point out that 
internally it's a fairly well structured class that could be output as a 
hierarchy of NamedLists (funny bit of trivia: i wrote that code once upon 
a time before SOlr was an Apache project, but it wouldn't work because the 
XmlResponseWriter had a bug where it couldn't handle NamedLists more then 
3 levels deep)

a patch would be fairly simple if someone wanted to write one.



-Hoss


Mime
View raw message