Skip to content

Suggester docs test fails due to unexpected score #54257

@DaveCTurner

Description

@DaveCTurner

This build (https://elasticsearch-ci.elastic.co/job/elastic+elasticsearch+master+multijob-unix-compatibility/os=fedora-29&&immutable/655/) failed as follows:

java.lang.AssertionError: Failure at [reference/search/suggesters/misc:64]: $body didn't match expected value:
                         $body: 
                         _shards: 
                            failed: same [0]
                           skipped: same [0]
                        successful: same [1]
                             total: same [1]
                            hits: 
                              hits: same [empty list]
                         max_score: same [null]
                             total: 
                            relation: same [eq]
                               value: same [0]
                         suggest: 
        phrase#my-second-suggester: 
                                   0: 
                                length: same [16]
                                offset: same [0]
                               options: 
                                       0: 
                                     score: expected Double [0.030227963] but was Double [0.039115205]
                                      text: same [some test message]
                                  text: same [some test mssage]
           term#my-first-suggester: 
                                   0: 
                                length: same [4]
                                offset: same [0]
                               options: same [empty list]
                                  text: same [some]
                                   1: 
                                length: same [4]
                                offset: same [5]
                               options: same [empty list]
                                  text: same [test]
                                   2: 
                                length: same [6]
                                offset: same [10]
                               options: 
                                       0: 
                                      freq: same [4]
                                     score: same [0.8333333]
                                      text: same [message]
                                  text: same [mssage]
                       timed_out: same [false]
                            took: same [18]

The REPRODUCE WITH line was as follows:

REPRODUCE WITH: ./gradlew ':docs:integTestRunner' --tests "org.elasticsearch.smoketest.DocsClientYamlTestSuiteIT.test {yaml=reference/search/suggesters/misc/line_10}" \
  -Dtests.seed=12A16F45234AB3D2 \
  -Dtests.security.manager=true \
  -Dtests.locale=ja-JP \
  -Dtests.timezone=America/Dawson \
  -Dcompiler.java=13

This did reproduce the failure the first time I tried it.

Metadata

Metadata

Assignees

Labels

:Search Relevance/Suggesters"Did you mean" and suggestions as you type>test-failureTriaged test failures from CITeam:Search RelevanceMeta label for the Search Relevance team in Elasticsearch

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions