Re: Term's frequency

2009-07-31 Thread prashant ullegaddi
Thanks Ahmet. This answers my question. On Fri, Jul 31, 2009 at 1:30 PM, AHMET ARSLAN wrote: > > > > Given a term say "apache", I want to look up the lucene index > > programmatically to find out its frequency in the corpus. > > I think you are asking collection frequency of a term. Term Frequen

Re: Term's frequency

2009-07-31 Thread AHMET ARSLAN
> Given a term say "apache", I want to look up the lucene index > programmatically to find out its frequency in the corpus. I think you are asking collection frequency of a term. Term Frequency is defined between a document and a term which is printed in the loop in the following code. And at

Re: Term's frequency

2009-07-31 Thread prashant ullegaddi
Given a term say "apache", I want to look up the lucene index programmatically to find out its frequency in the corpus. On Fri, Jul 31, 2009 at 12:23 AM, wrote: > > prashant ullegaddi wrote: > > How to get the number of times a term occurs in the Lucene index? > > > > Regards, > > Prashant

Re: Term's frequency

2009-07-30 Thread ohaya
prashant ullegaddi wrote: > How to get the number of times a term occurs in the Lucene index? > > Regards, > Prashant. Hi, You didn't mention if you were looking for something programmatic or not, but there's a tool called "Luke", and when you start that up and point it to your index

Term's frequency

2009-07-30 Thread prashant ullegaddi
How to get the number of times a term occurs in the Lucene index? Regards, Prashant.

Re: How can I get a term's frequency?

2006-02-23 Thread Grant Ingersoll
You need to make sure you are indexing with Term Vectors in order for IndexReader.getTermFreqVector to return anything meaningful. You do not need to implement it. QueryTermVector is meant to provide similar information to the Document side for Queries. For an example demo of indexing and using t

Re: How can I get a term's frequency?

2006-02-22 Thread Daniel Noll
sog wrote: > en, but IndexReader.getTermFreqVector is an abstract method, I do not > know how to implement it in an efficient way. Anyone has good advise? You probably don't need to implement it, it's been implemented already. Just call the method. > I can do it in this way: > > QueryTermVecto

Re: How can I get a term's frequency?

2006-02-22 Thread sog
eld)); freq = result.getTermFrequencies(); but I think this is a very low efficient way. Anyone can help me ? thx sog - Original Message - From: "Daniel Noll" <[EMAIL PROTECTED]> To: Sent: Wednesday, February 22, 2006 1:19 PM Subject: Re: How can I get a term's frequency?

Re: How can I get a term's frequency?

2006-02-22 Thread sog
Frequencies(); but I think this is a very low efficient way. Anyone can help me ? thx sog - Original Message - From: "Daniel Noll" <[EMAIL PROTECTED]> To: Sent: Wednesday, February 22, 2006 1:19 PM Subject: Re: How can I get a term's frequency? sog wrote:

Re: How can I get a term's frequency?

2006-02-21 Thread Daniel Noll
sog wrote: > > I search the index with a group of terms. I want to get every term's > frequency in each document of the search result. Are you looking for this? TermFreqVector vector = IndexReader.getTermFreqVector(docNum, "field"); That gives you the frequency of ever

How can I get a term's frequency?

2006-02-21 Thread sog
I search the index with a group of terms. I want to get every term's frequency in each document of the search result. How can I? thx, sog - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e