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
-
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_TEXT
andIndexType.NON_UNIQUE
, aneq
filter fails with:org.dizitart.no2.exceptions.FilterException: Text index only supports a single TextFilter
IndexType.FULL_TEXT
andIndexType.UNIQUE
, atext
filter 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,
testNoUnique
produces: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