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
> 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
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
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
How to get the number of times a term occurs in the Lucene index?
Regards,
Prashant.
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
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
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?
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:
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
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
11 matches
Mail list logo