ATLAS-5032: Basic search using qualifiedName with startsWith and endsWith operators does not return results for long entity names #470
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What changes were proposed in this pull request?
Changes:
Detect attribute values longer than 255 chars and force a graph-query fallback, ensuring Atlas can reliably find entities with very long or tokenized qualifiedNames.
Earlier:
When performing a search using long entity names with attributes like qualifiedName and the StartsWith operator, results are not returned as expected.
Since the qualifiedName attribute is an indexed key, however, Solr's default standard tokenizer has a maximum token length of 255 characters. When entity names exceed this length, the tokenizer fails to parse the value correctly, leading to search failures.
How was this patch tested?