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
When dealing with complex documents, it is recommanded to use a foo[]:bar syntax to index array attributes.
The problem is that you can't know which value of the array matched the search in the results. For example, if we have a list of contacts that may contain several email addresses { emails: [{address: 'toto@domain.com'}, {address: 'tata@domain.com'}] }, and we do a search on tata, the result will include emails[].address without us knowing which email address it is precisely.
Is there a way to overcome this? It would be nice to know which array value matched the search.
The text was updated successfully, but these errors were encountered:
JF-Cozy
changed the title
Result when using arrays in indexed attributes
How to get the matching value with indexed array
Mar 30, 2023
In my case this is OK since what matters most is that I get the Id and Url. However, I can't yet estimate if the file is quickly getting big because of that...
No I didn't set enrich=true but tried with it, same problem so far. As the objects are quite big, and I already have them elsewhere, I prefer to keep only the ids.
When dealing with complex documents, it is recommanded to use a
foo[]:bar
syntax to index array attributes.The problem is that you can't know which value of the array matched the search in the results. For example, if we have a list of contacts that may contain several email addresses
{ emails: [{address: 'toto@domain.com'}, {address: 'tata@domain.com'}] }
, and we do a search ontata
, the result will includeemails[].address
without us knowing which email address it is precisely.Is there a way to overcome this? It would be nice to know which array value matched the search.
The text was updated successfully, but these errors were encountered: