Mailing List Archive

FacetsCollector ScoreMode
Hey all,

I was looking into some performance issues and was a little confused about
one aspect of FacetsCollector - why does it always specify
ScoreMode.COMPLETE?

Especially for the case where we are counting facets, without collecting
the documents, it seems like we should be able to get away without scoring.
I've tested it locally and it seems to work, but I'm wondering what nuance
I am missing.

The default behaviour is keepScores == false, so I feel like we should be
able to adjust the score mode used based on that.

Thanks,
Mike
Re: FacetsCollector ScoreMode [ In reply to ]
+1 to adjusting the ScoreMode based on keepScores.

On Mon, Mar 21, 2022 at 5:47 PM Mike Drob <mdrob@mdrob.com> wrote:
>
> Hey all,
>
> I was looking into some performance issues and was a little confused about
> one aspect of FacetsCollector - why does it always specify
> ScoreMode.COMPLETE?
>
> Especially for the case where we are counting facets, without collecting
> the documents, it seems like we should be able to get away without scoring.
> I've tested it locally and it seems to work, but I'm wondering what nuance
> I am missing.
>
> The default behaviour is keepScores == false, so I feel like we should be
> able to adjust the score mode used based on that.
>
> Thanks,
> Mike



--
Adrien

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org
Re: FacetsCollector ScoreMode [ In reply to ]
+1 to align this to the needs of keepScores. Good find!

On Mon, Mar 21, 2022 at 10:00 AM Adrien Grand <jpountz@gmail.com> wrote:
>
> +1 to adjusting the ScoreMode based on keepScores.
>
> On Mon, Mar 21, 2022 at 5:47 PM Mike Drob <mdrob@mdrob.com> wrote:
> >
> > Hey all,
> >
> > I was looking into some performance issues and was a little confused about
> > one aspect of FacetsCollector - why does it always specify
> > ScoreMode.COMPLETE?
> >
> > Especially for the case where we are counting facets, without collecting
> > the documents, it seems like we should be able to get away without scoring.
> > I've tested it locally and it seems to work, but I'm wondering what nuance
> > I am missing.
> >
> > The default behaviour is keepScores == false, so I feel like we should be
> > able to adjust the score mode used based on that.
> >
> > Thanks,
> > Mike
>
>
>
> --
> Adrien
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org