: 3) When the user clicks into a single video in the search result,
: retrieve from the corresponding doc in Solr the timestamps of all
: words matching the keyword(s) (including stemming).
        ...
: Ok, so now for the harder part.  For #3 it would seem I need something
: roughly like the highlighter - to return each matching word and the
: payload which is the timestamp.
: 
: I'm not seeing any existing request handler or component that would do
: this.  Is there an easy way to retrieve the indexed words (or analyzed
: tokens) and their payload?

I suspect the easiest way to go about this would be a request handler that 
used SpanQuery to find all the matchings Spans on the document, and then 
while iterating over the span call getPayload().

Of course: this assumes your queries can all be representd as SpanQueries 
(so no numerics or function queries or anything too cray ... but if the 
goal is searching words in video transcripts that shouldn't be a show 
stopper)

-Hoss

Reply via email to