lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Ryan <help...@gmail.com>
Subject Re: idf calculation in Lucene ?
Date Wed, 02 Nov 2011 19:09:24 GMT
one more question,
for  phrase or multiphrase query.
why not using the maximum idf of individual term  instead of summing up the
idfs of each term?



On Mon, Oct 31, 2011 at 2:30 PM, Robert Muir <rcmuir@gmail.com> wrote:

> yes: override that method idfExplain(java.util.Collection,
> org.apache.lucene.search.Searcher)
>
> On Mon, Oct 31, 2011 at 5:24 PM, David Ryan <helponr@gmail.com> wrote:
> > Thanks!  Is there any way to extend the Similarity class to overwrite the
> > behavior (e.g.,  using the max idf instead of the sum of each term idfs)?
> >
> >
> > On Thu, Oct 27, 2011 at 5:41 AM, Robert Muir <rcmuir@gmail.com> wrote:
> >
> >> On Thu, Oct 20, 2011 at 3:11 PM, David Ryan <helponr@gmail.com> wrote:
> >>
> >> >
> >> > However, in some case,  when I search o'reilly ,  I see
> >> >
> >> >  *  44.0865 = idf(title: o''reilli=4 o=1488 reilli=14 oreilli=4)*
> >> >
> >> > In this cae, How is IDF calculated?
> >> >
> >>
> >> thats a phrase or multiphrase query.
> >>
> >> in this case it sums up the idf of each term:
> >>
> >>
> http://lucene.apache.org/java/3_4_0/api/all/org/apache/lucene/search/Similarity.html#idfExplain(java.util.Collection
> >> ,
> >> org.apache.lucene.search.Searcher)
> >>
> >> --
> >> lucidimagination.com
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> >> For additional commands, e-mail: java-user-help@lucene.apache.org
> >>
> >>
> >
>
>
>
> --
> lucidimagination.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message