fabriziofortino commented on a change in pull request #469:
URL: https://github.com/apache/jackrabbit-oak/pull/469#discussion_r797742440
##########
File path:
oak-lucene/src/main/java/org/apache/jackrabbit/oak/plugins/index/lucene/LucenePropertyIndex.java
##########
@@ -1551,7 +1551,7 @@ private static Query tokenToQuery(String text, String
fieldName, PlanResult pr,
if (FieldNames.FULLTEXT.equals(fieldName)) {
Query subQuery = new BooleanQuery();
if (pr.indexDefinition.isDynamicBoostLiteEnabled()) {
- subQuery = new TermQuery(new Term(FieldNames.SIMILARITY_TAGS,
text));
+ subQuery = new TermQuery(new Term(FieldNames.SIMILARITY_TAGS,
text.toLowerCase()));
Review comment:
@FrancoisZhang that's a possibility but we are going to apply other
possible transformations that the analyzer does.
Could you instead try to modify this code with:
```java
subQuery = tokenToQuery(text, FieldNames.SIMILARITY_TAGS, analyzer);
```
In this way, we use the lucene analyzer that applies a number of
transformations. I think this was the main issue with dynamic boost lite (my
bad). Could you try this and verify the other tests work? Thanks
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]