Closed kand617 closed 6 years ago
I couldn't reproduce the issue. Below is the test I tried to reproduce it with
@Test
public void indexSpecWithDuplicates() {
service.processDocuments(Collections.singletonList("pet petlist petstore pet petlist petstore"));
service.processDocuments(Collections.singletonList("pet petlist petstore pet petlist petstore"));
List<String> words = service.search("pet");
assertThat(words).hasSize(3);
assertThat(words).contains("pet", "petlist", "petstore");
}
@kand617 Could you checkout duplicate_search_result_test
branch and see if you can reproduce the issue?
@sudhirtumati I have updated the test