You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running this code as node test-dupe.js resulted in:
[{field: 'data[]',result: [0,1,2,3,1,4]}]
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?
The text was updated successfully, but these errors were encountered:
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?The text was updated successfully, but these errors were encountered: