We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Affected feature: ArangoSearch OFFSET_INFO
AQL query (if applicable):
FOR doc IN `index` SEARCH doc.nested[? FILTER CURRENT.key == 'gh' AND STARTS_WITH(CURRENT.value, 'montre') ] LIMIT 100 FOR offsetInfo IN OFFSET_INFO(doc, ['nested[*].value']) RETURN { name: offsetInfo.name, matches: offsetInfo.offsets[* RETURN { offset: CURRENT, match: SUBSTRING_BYTES(VALUE(doc, offsetInfo.name), CURRENT[0], CURRENT[1]) }] }
Dataset: All documents have the following shape
{ "type": "abc", "nested": [ { "key": "gh", "value": "montreal" }, { "key": "yz", "value": "quebec" } ] }
{ "name": "plain", "type": "norm", "features": [ "frequency", "position", "offset", "norm" ], "properties": { "locale": "en", "case": "lower", "accent": false } }
collection_a_index
collection_a
{ "searchField": true, "trackListPositions": true, "fields": [ { "name": "type", "analyzez": "plain" }, { "name": "nested", "nested": [ { "name": "key" }, { "name": "value" "analyzer": "plain" } ] } ] }
{ "type": "search-alias", "name": "index", "indexes": [ { "collection": "collection_a", "index": "collection_a_index" } ] }
Problem:
Getting the offset info for nested properties does not work.
Expected result:
I would expect arango to allow getting offset info when matching using nested search.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
My Environment
Component, Query & Data
Affected feature: ArangoSearch OFFSET_INFO
AQL query (if applicable):
Dataset:
All documents have the following shape
Steps to reproduce
collection_a_index
over collectioncollection_a
Problem:
Getting the offset info for nested properties does not work.
Expected result:
I would expect arango to allow getting offset info when matching using nested search.
The text was updated successfully, but these errors were encountered: