skip_duplicates ignores weight #35836
Labels
>bug
:Search Relevance/Suggesters
"Did you mean" and suggestions as you type
Team:Search Relevance
Meta label for the Search Relevance team in Elasticsearch
Elasticsearch version (
bin/elasticsearch --version
): 6.5.1, Build: default/tar/8c58350/2018-11-16T02:22:42.182257Z, JVM: 11.0.1Plugins installed:
ingest-geoip
ingest-user-agent
JVM version (
java -version
):openjdk version "11.0.1" 2018-10-16
OpenJDK Runtime Environment 18.9 (build 11.0.1+13)
OpenJDK 64-Bit Server VM 18.9 (build 11.0.1+13, mixed mode)
OS version (
uname -a
if on a Unix-like system):Linux 1f3aa3980dfa 4.9.125-linuxkit #1 SMP Fri Sep 7 08:20:28 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
Description of the problem including expected versus actual behavior:
Running a suggest query with
skip_duplicates
set totrue
ignoresweight
of documents.Steps to reproduce:
Create mapping:
Index some documents:
"status_and_rental" varies from document to document with possible values of "U" or "UR". Weight varies between 662 and 1228.
Here's my search query:
The query returns one document with the weight of 662. But there are other documents with higher weight. I would expect the document with the highest weight to be returned.
The text was updated successfully, but these errors were encountered: