Now you can see the id 1 appears twice in the search result.
I expect that every documents should appear at most once in one search result.
This result also looks weird for me because the id 0 is not appearing twice while the document has test in two elements of data as the document with the id 1 does.
Documents with id 2, 3, and 4 are for verifying that each elements alone bring hits in the search.
My questions:
Is seeing the same document multiple times in one search result like this an expected behavior?
Why the document with id 0 doesn't appear twice while one with id 1 does in this case?
Environment:
Example JavaScript code
test-dupe.js
:Running this code as
node test-dupe.js
resulted in:Now you can see the id
1
appears twice in the search result.I expect that every documents should appear at most once in one search result.
This result also looks weird for me because the id
0
is not appearing twice while the document hastest
in two elements ofdata
as the document with the id1
does.Documents with id
2
,3
, and4
are for verifying that each elements alone bring hits in the search.My questions:
0
doesn't appear twice while one with id1
does in this case?