OPENDJ-2045 dsconfig fails when creating index on attribute "l" with multiple types
Specifying multiple types at index creation could lead to trying to modify an immutable object.
Set all types to add to the existing list.
| | |
| | | switch (indexType) |
| | | { |
| | | case PRESENCE: |
| | | indexers = Collections.singleton(PRESENCE_INDEXER); |
| | | indexers.add(PRESENCE_INDEXER); |
| | | break; |
| | | case EXTENSIBLE: |
| | | indexers = |
| | | getExtensibleIndexers(config.getAttribute(), config.getIndexExtensibleMatchingRule(), indexingOptions); |
| | | indexers.addAll( |
| | | getExtensibleIndexers(config.getAttribute(), config.getIndexExtensibleMatchingRule(), indexingOptions)); |
| | | break; |
| | | case APPROXIMATE: |
| | | rule = throwIfNoMatchingRule(attributeType, indexType, attributeType.getApproximateMatchingRule()); |