: Is it possible to get the matching terms from your query for each document
: returned without using highlighting.
        ...
: I was told this is possible using Term Vectors. I have not been able to find

I'm not 100% familiar with the TermVectorComponent, but as i understand it 
it gives you back all the Term Vectors for the matching documents -- it 
doens't attempt to filter that list based on query string (it has no way 
of knowing which terms actualy contributed to the match), so you 
would have to parse the output and look for the keywords.

: a way to do this using Term Vectors. The only reason I am against using
: highlighting is for performance reasons.

highlighting works either by re-analyzing the stored values at query time, 
or by looking at the Term Vectors -- so if you have TermVectors turned on 
in your schema you've already saved 90% of what typicaly makes 
highlighting slow.  THe onlything missing would be a Fragmenter that 
generated *just* the matching terms as their own fragments without any 
special markup.



-Hoss

Reply via email to