Skip to content

Commit

Permalink
#3929 - Spaces in feature names not treated same as in layer names wh…
Browse files Browse the repository at this point in the history
…en indexing

- Sanitize feature names in the same way as layer names when indexing
  • Loading branch information
reckart committed Apr 5, 2023
1 parent 8f6bfe5 commit 3d9c246
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -431,8 +431,8 @@ private int indexFeatures(AnnotationFS aAnnotation, String aLayer, String aPrefi
MultiValuedMap<String, String> fieldsAndValues = fis.get().indexFeatureValue(aLayer,
aAnnotation, aPrefix, feature);
for (Entry<String, String> e : fieldsAndValues.entries()) {
indexFeatureValue(e.getKey(), e.getValue(), mtasId++, aAnnotation.getBegin(),
aAnnotation.getEnd(), aRange, aFSAddress);
indexFeatureValue(getIndexedName(e.getKey()), e.getValue(), mtasId++,
aAnnotation.getBegin(), aAnnotation.getEnd(), aRange, aFSAddress);
}

if (LOG.isTraceEnabled()) {
Expand Down

0 comments on commit 3d9c246

Please sign in to comment.