the pattern must match the property value exactly,
when matching property values to the query. This is important when you have a property value that is a prefix of another property value, e.g., AuditService.logEvent and AuditService.logEvents.
This commit is contained in:
@@ -165,7 +165,7 @@ public class ExpressionToDocIdVisitor extends ExpressionVisitor<IntList> {
|
||||
|
||||
final Map<String, IntList> valueToDocId = keyToValueToDocId.getOrDefault(propertyName, EMPTY_VALUES);
|
||||
for (final Entry<String, IntList> entry : valueToDocId.entrySet()) {
|
||||
if (valuePattern.matcher(entry.getKey()).find()) {
|
||||
if (valuePattern.matcher(entry.getKey()).matches()) {
|
||||
result.add(entry.getValue());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user