Uploaded image for project: 'Hibernate Search'
  1. HSEARCH-2751

SimpleQueryStringDSLTest fails on Elasticsearch 5.1

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.8.0.Beta3
    • Component/s: elasticsearch, tests
    • Labels:
      None

      Description

      The scoring algorithm seems to be a little bit different on this version for some reason, leading to this error:

      org.junit.ComparisonFailure: expected:<['[Rosabaya de Colombia', 'Decaffeinato]', 'Ristretto']> but was:<['[Decaffeinato', 'Rosabaya de Colombia]', 'Ristretto']>
      	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
      	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
      	at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
      	at org.fest.assertions.ConstructorInvoker.newInstance(ConstructorInvoker.java:36)
      	at org.fest.assertions.ComparisonFailureFactory.newComparisonFailure(ComparisonFailureFactory.java:60)
      	at org.fest.assertions.ComparisonFailureFactory.comparisonFailure(ComparisonFailureFactory.java:46)
      	at org.fest.assertions.Fail.comparisonFailed(Fail.java:83)
      	at org.fest.assertions.Fail.failIfNotEqual(Fail.java:71)
      	at org.fest.assertions.GenericAssert.isEqualTo(GenericAssert.java:217)
      	at org.hibernate.search.test.query.dsl.SimpleQueryStringDSLTest.compareCoffeeResultsAndExpected(SimpleQueryStringDSLTest.java:222)
      	at org.hibernate.search.test.query.dsl.SimpleQueryStringDSLTest.testBoost(SimpleQueryStringDSLTest.java:121)
      

      From what I can see, we could just change the search query so that either "Rosabaya de Colombia" or "Decaffeinato" doesn't appear in the results, we don't need both.

        Attachments

          Activity

            People

            • Assignee:
              yrodiere Yoann Rodière
              Reporter:
              yrodiere Yoann Rodière
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: