lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ahmet Arslan <>
Subject Re: To get the term-freq
Date Fri, 17 Nov 2017 16:37:22 GMT

I am also intersted into the answer to this question. 
I wonder whether term freq. function query would work here.


On Friday, November 17, 2017, 10:32:23 AM GMT+3, Dwaipayan Roy <>


I want to get the term frequency of a given term t in a given document with
lucene docid say d.
Formally, I need a function say f() that takes two arguments: 1.
lucene-docid d, 2. term t, and returns the number of time t occurs in d.

I know of one solution, that is, traversing the whole document using
TermsEnum iterator, but it is taking a lot of time. I want a solution that
works fast.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message