Replies: 1 comment 1 reply
-
|
This could be a bug. The behavior should be same for any combination of index. Could you please raise an issue in the repository? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
When I was trying to add an index to a field that is text-based, I found weird that a index cannot be added to the same field twice. The actual index applied and behavior depends on the combinations of indexes applied:
IndexType.FULL_TEXTandIndexType.NON_UNIQUE, aneqfilter fails with:org.dizitart.no2.exceptions.FilterException: Text index only supports a single TextFilterIndexType.FULL_TEXTandIndexType.UNIQUE, atextfilter does not fail, but it is not able to find any result.An example class that can be used to show the behavior:
Where if run,
testNoUniqueproduces:And
testUnique:Is there a way to provide a text and another index to a single field?
Beta Was this translation helpful? Give feedback.
All reactions