- Issue created by @fjgarlin
- πΊπΈUnited States chrisfromredfin Portland, Maine
fjgarlin β credited chrisfromredfin β .
- πͺπΈSpain fjgarlin
Useful links:
- https://stackoverflow.com/questions/12427449/elasticsearch-boosting-rele...
- https://opensearch.org/docs/latest/query-dsl/compound/function-score/Giving credit to people that helped me with some very useful insights.
-
fjgarlin β
committed 43d0e6fd on 1.0.x
Issue #3487691 by fjgarlin, chrisfromredfin, isholgueras: Search API...
-
fjgarlin β
committed 43d0e6fd on 1.0.x
- πͺπΈSpain fjgarlin
Digging a bit more in the documentation, if there are only
filters
, then the results will not be scored at all. If there is aquery
, they will. If there are bothfilters
andquery
, they will.What Iβm testing is, whenever there are only filters, then add a dummy query:
$original_query...['query_string'] = [ 'query' => '_exists_: title' ];
which will be true to all results, and it will trigger the scoring functions.
Local tests show good results. I am merging this. We can follow-up as needed.
Automatically closed - issue fixed for 2 weeks with no activity.