A way to show what object in an array in the document matched the query. #655
Closed
labadcloyd
started this conversation in
Feedback & Feature Proposal
Replies: 1 comment
-
Hi @labadcloyd , thanks for taking the time to share your use case! We have an ongoing discussion for this need in #550, I'll move your feedback there and close this discussion to unify the source of truth. Feel free to add to that conversation and/or upvote the feature on Productboard. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a document in an index like so:
If im going to search for the term "Croissants butter" it would most likely return this entire object. But if there was a way to know at which index of the array "ingredient_mapping" the match was then it would really help a lot.
This is similar to showMatchesPosition but the index of the object in the array would be returned, not the index of the string.
EDIT: I've queried the above document with showMatcherPosition and this is what it returns:
Is there a way we can add the index to the array in the "_matchesPosition" field data?
Beta Was this translation helpful? Give feedback.
All reactions