We're updating the issue view to help you get more done. 

SimpleQueryStringDSLTest fails on Elasticsearch 5.1

Description

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

1 2 3 4 5 6 7 8 9 10 11 12 13 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.

Environment

None

Status

Assignee

Yoann Rodière

Reporter

Yoann Rodière

Labels

None

Suitable for new contributors

None

Feedback Requested

None

Components

Fix versions

Priority

Major