[ https://issues.apache.org/jira/browse/SOLR-949?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Aleksander M. Stensby updated SOLR-949: --------------------------------------- Attachment: SOLR-949.patch This patch includes support for specifying what term vector information we want to retrieve (tf, df, tf_idf, positions, offsets, all) and specifying term vector fields. A new class called TermVectorInfo is added, containing the returned TermVector information (returned in QueryResponse). (Not really sure if this is a good name, so feel free to change or give feedback.) The patch also includes a test in SolrQuery for setting/getting parameters, and a test in SolrExampleTests for testing the SolrResponse. One note: I intended to use TermVectorComponent.COMPONENT_NAME in SolrQuery, but ant would not compile because it complained about not being able to find the package: package org.apache.solr.handler.component does not exist So temporarily until i figure out why this happens i use "tv" for now.. Sorry about that. I hope my code makes sense and that it might be useful for others. > Add QueryResponse and SolrQuery support for TermVectorComponent > --------------------------------------------------------------- > > Key: SOLR-949 > URL: https://issues.apache.org/jira/browse/SOLR-949 > Project: Solr > Issue Type: New Feature > Components: clients - java > Reporter: Aleksander M. Stensby > Priority: Minor > Attachments: SOLR-949.patch > > > In a similar fashion to Facet information, it would be nice to have support > for easily setting TermVector related parameters through SolrQuery, and it > would be nice to have methods in QueryResponse to easily retrieve TermVector > information -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.