Hi Alex, thanks for responding so quickly.

I guess (but I'll need to verify) the issue is that we boost on some other 
things by default. Thigs like how often has stuff been loaned, how many copies 
are there in the libraries. That seems to (but again, I'll need to make some 
experiments to verify) take priority over how many OR clauses from one of the 
fqs that are matched. That makes sense, but I wonder if there is a way to work 
around that?


--

Noah Torp-Smith (n...@dbc.dk)

________________________________
Fra: Alessandro Benedetti <benedetti.ale...@gmail.com>
Sendt: 26. august 2022 11:26
Til: users@solr.apache.org <users@solr.apache.org>
Emne: Re: Ranking based on number of OR clauses matched

[Du får ikke ofte mails fra benedetti.ale...@gmail.com. Få mere at vide om, 
hvorfor dette er vigtigt, på https://aka.ms/LearnAboutSenderIdentification ]

Hi Noah,
That's pretty much the default if you go with a pure boolean query!
Do you see a different behaviour?
What is your query?

Cheers


On Fri, 26 Aug 2022, 11:22 Noah Torp-Smith, <n...@dbc.dk.invalid> wrote:

> We have a search engine with books that have topics and other features. We
> do faceting on these features, and allow users to check off topics they are
> interested in, in the UI. If a user checks off more than one topic, we
> retrieve books that have any of the topics checked off, so the search
> becomes disjunctive.
>
> My question is, is there a way to rank books that match more than one
> selected topic higher than books that match only one topic?
>
> Topic is only an example here. Ideally, we would like to do this on
> features that we only have as docValues in solr, so ordering them after
> they are returned by solr would require changes we would like to avoid if
> possible.
>
> I realize this might be a "classical" question but I have not been able to
> formulate a query in google/stackexchange that gave me an answer.
>
> Thanks!
>
> /Noah
>
>
> --
>
> Noah Torp-Smith (n...@dbc.dk)
>

Reply via email to