Re: problems of getting frequency and position for a paticular word

2011-09-09 Thread Chris Hostetter

: Is there a way for solr to return only the frequency and position of a
: paticular word back to client?

I don't think so.

It would probably be relatively straight forward to add to 
TermVectorComponent -- i don't know that it would save any *time* (i tihnk 
it would still have to process all the terms to get all the positions for 
the one term you care about) but it would certainly reduce the data sent 
over the wire.

The other option you may wnat to consider is a custom Highligher 
components (i think you would need a fragmenter and a formatter) that just 
paid attention to the positions and returned them instead of marking up 
the text.

-Hoss


problems of getting frequency and position for a paticular word

2011-09-04 Thread Zong Peng
Hi,

I am using solr to get the term frequency and positon of a searched word.
Solr basically transfer the whole Termvector back to the client, which is
not efficient because the term vector contains tons of unwanted words and
their information.

Is there a way for solr to return only the frequency and position of a
paticular word back to client?

thanks,
Zong