Re: TermVectors and custom queries

2011-07-01 Thread Michael Sokolov
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

Re: TermVectors and custom queries

2011-07-01 Thread Jamie Johnson
How would I know which ones were the ones I wanted? I don't see how from a query I couldn't match up the term vectors that met the query. Seems like what needs to be done is have the highlighting on the solr end where you have more access to the information I'm looking for. Sound about right? On

Re: TermVectors and custom queries

2011-07-01 Thread Mike Sokolov
Yes, that's right. But at the moment the HL code basically has to reconstruct and re-run your query - it doesn't have any special knowledge. There's some work going on to try and fix that, but it seems like it's going to require some fairly major deep re-plumbing. -Mike On 07/01/2011 07:54

Re: TermVectors and custom queries

2011-06-30 Thread Jamie Johnson
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

TermVectors and custom queries

2011-06-27 Thread Jamie Johnson
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