: 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

Reply via email to