You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by MitchK <mi...@web.de> on 2010/01/30 11:04:10 UTC
Getting the Lucene Document ID for TermVectorComponent
Hello community,
using the TermVectorComponent for a special set of documents, I will need
the Lucene Document IDs.[1]
How do I get them from a response? I have searched the Solr- and the
Lucene-wiki but can't find anything to solve this problem.
By the way: Are there any known bugs with using a Lucene-framework-based
IndexSearcher on an index built by Solr? Maybe one can use Lucene to create
the response and work on it, instead of using Solr, because - for
application internal tasks - there is no need for a xml-response.
[1] TermVectorComponent
http://wiki.apache.org/solr/TermVectorComponent?highlight=(tv.docIds)
Thank you!
Mitch
--
View this message in context: http://old.nabble.com/Getting-the-Lucene-Document-ID-for-TermVectorComponent-tp27382599p27382599.html
Sent from the Solr - User mailing list archive at Nabble.com.
Re: Getting the Lucene Document ID for TermVectorComponent
Posted by MitchK <mi...@web.de>.
Hoss,
this will have the same effect as I expected. Why wasn't that my first
thought? :)
Thank you!
--
View this message in context: http://old.nabble.com/Getting-the-Lucene-Document-ID-for-TermVectorComponent-tp27382599p27390985.html
Sent from the Solr - User mailing list archive at Nabble.com.
Re: Getting the Lucene Document ID for TermVectorComponent
Posted by Chris Hostetter <ho...@fucit.org>.
: using the TermVectorComponent for a special set of documents, I will need
: the Lucene Document IDs.[1]
...
: http://wiki.apache.org/solr/TermVectorComponent?highlight=(tv.docIds)
internal doc ids are generally not exposed to the end user and shouldn't
be trusted 99% of the time ... the param you are refering to is a very
expert level feature that most people should never need to use.
Instead you should be using the the q,sort,start and rows params to pick
the documents you want to get term vectors...
http://wiki.apache.org/solr/TermVectorComponentExampleOptions
: By the way: Are there any known bugs with using a Lucene-framework-based
: IndexSearcher on an index built by Solr? Maybe one can use Lucene to create
: the response and work on it, instead of using Solr, because - for
: application internal tasks - there is no need for a xml-response.
This is what SolrJ and embedded solr was created for.
http://wiki.apache.org/solr/Solrj#EmbeddedSolrServer
-Hoss