I think that's all you can do, although there is a callback-style
interface that might save some time (or space). You still need to
iterate over all of the vectors, at least until you get the one you want.
-Mike
On 6/30/2011 4:53 PM, Jamie Johnson wrote:
Perhaps a better question, is this possible?
On Mon, Jun 27, 2011 at 5:15 PM, Jamie Johnson<jej2...@gmail.com> wrote:
I have a field named content with the following definition
<field name="content" type="text" indexed="true" stored="true"
multiValued="true" termVectors="true" termPositions="true"
termOffsets="true"/>
I'm now trying to execute a query against content and get back the term
vectors for the pieces that matched my query, but I must be messing
something up. My query is as follows:
http://localhost:8983/solr/select/?qt=tvrh&q=content:test&fl=content&tv.all=true
where the word test is in my content field. When I get information back
though I am getting the term vectors for all of the tokens in that field.
How do I get back just the ones that match my search?