lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ahmet Arslan <iori...@yahoo.com.INVALID>
Subject Re: How can I list all the terms from a document?
Date Fri, 16 Sep 2016 19:59:57 GMT
Hi,

I thought the link/url below has the example code, no?


http://makble.com/what-is-term-vector-in-lucene

If not, in the source tree, under the tests folder, there should be some test cases for termVectors,
which can be used as en example code.

I guess internal lucene document id, which easy to get when you have lucene query, is used.
new termquery(new term("fileName","something"));

Ahmet



On Friday, September 16, 2016 4:09 PM, szzoli <reg9szabo@freemail.hu> wrote:
If I have a TermVector, is it possible to give it a filename, so that it
could enumerate through ll the terms? (I need the number of occurances in
the document, too.)



--
View this message in context: http://lucene.472066.n3.nabble.com/How-can-I-list-all-the-terms-from-a-document-tp4294797p4296455.html

Sent from the Lucene - Java Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message