You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by Amal S Raj <am...@gmail.com> on 2020/02/21 13:39:17 UTC
Scores With & Without IDF In A Single Search
Hi,
I'd like to retrieve the score with and without IDF for a particular
document in a search. What is a good way to implement this, without doing
two searches?
Thanks,
Amal
Re: Scores With & Without IDF In A Single Search
Posted by Amal S Raj <am...@gmail.com>.
Thanks for your reply. But I made a grammatical mistake. I meant all
documents in a search, not just a single one.
Wouldn't using a filter slow down if I need scores for all the documents in
the search?
On Fri, Feb 21, 2020, 7:37 PM Adrien Grand <jp...@gmail.com> wrote:
> An easy way to do this would be to run two searches with a filter that only
> matches this document.
>
> On Fri, Feb 21, 2020 at 2:39 PM Amal S Raj <am...@gmail.com> wrote:
>
> > Hi,
> >
> > I'd like to retrieve the score with and without IDF for a particular
> > document in a search. What is a good way to implement this, without doing
> > two searches?
> >
> > Thanks,
> > Amal
> >
>
>
> --
> Adrien
>
Re: Scores With & Without IDF In A Single Search
Posted by Adrien Grand <jp...@gmail.com>.
An easy way to do this would be to run two searches with a filter that only
matches this document.
On Fri, Feb 21, 2020 at 2:39 PM Amal S Raj <am...@gmail.com> wrote:
> Hi,
>
> I'd like to retrieve the score with and without IDF for a particular
> document in a search. What is a good way to implement this, without doing
> two searches?
>
> Thanks,
> Amal
>
--
Adrien