This from the highlighter package will give you the IDF :
WeightedTerm[] QueryTermExtractor.getIdfWeightedTerms(Query query,
IndexReader reader, String fieldName)
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional comman
I implemented a Query version of the TermVector
org.apache.lucene.search.QueryTermVector
Works off of an array of Strings or a String and an Analyzer. Is this
what you are looking for?
>>> [EMAIL PROTECTED] 1/28/2005 6:33:18 AM >>>
On Jan 27, 2005, at 10:24 PM, Jonathan Lasko wrote:
> No, the
On Jan 27, 2005, at 10:24 PM, Jonathan Lasko wrote:
No, the number of occurrences of a term in a Query.
Nothing built-in gives you this. You'd have to dissect the Query
clause-by-clause and cast each clause to the proper type to pull the
terms from them. The Highlighter code does this.
If th
No, the number of occurrences of a term in a Query.
Jonathan
Quoting David Spencer <[EMAIL PROTECTED]>:
> Jonathan Lasko wrote:
>
> > What do I call to get the term frequencies for terms in the Query? I
> > can't seem to find it in the Javadoc...
>
> Do you mean the # of docs that have a ter
Jonathan Lasko wrote:
What do I call to get the term frequencies for terms in the Query? I
can't seem to find it in the Javadoc...
Do you mean the # of docs that have a term?
http://jakarta.apache.org/lucene/docs/api/org/apache/lucene/index/IndexReader.html#docFreq(org.apache.lucene.index.Term)
T