Both `qf` and `relatedness` should be orthogonal to your question, iiuc.
Understanding that your question is mainly about which terms are included
(i.e. included at all -- nevermind ranking), then the only thing that
should determine that is the field and fieldType config for the terms facet
"field" property -- i.e., "description". Can you share that information,
including index-time analysis chain config?

On Tue, Apr 5, 2022 at 8:52 AM Dan Rosher <rosh...@gmail.com> wrote:

> Hi,
>
> If I run a facet on relatedness on a qf field (examples below) which has
> stopword removal, I get stopwords in the json facet?
>
> Anyone know why, and if this can be avoided?
>
> Many thanks,
> Dan
>
> =================
>
> Details
> Solr 7.7.2
>
> http://localhost:8983/solr/collection/select?
> q=my query&
> defType=edismax&
> qf=description&
> fore={!type=$defType qf=$qf v=$q}&
> back=*:*&
> rows=0&
> json.facet={
>   "description":{
>     "type": "terms",
>     "field": "description",
>     "sort": { "relatedness": "desc"},
>     "mincount": 2,
>     "limit": 8,
>     "facet": {
>         "relatedness": {
>             "type": "func",
>             "func": "relatedness($fore,$back)"
>         }
>     }
>   }
> }
>

Reply via email to