OAK-11603: lucene 4.x fuzzy queries don't work in Elastic#2180
OAK-11603: lucene 4.x fuzzy queries don't work in Elastic#2180fabriziofortino merged 2 commits intoapache:trunkfrom
Conversation
...c/main/java/org/apache/jackrabbit/oak/plugins/index/elastic/query/ElasticRequestHandler.java
Show resolved
Hide resolved
|
Tests in this repo fail very frequently. Here again. Should it be a warning for us or we can ignore it? |
nfsantos
left a comment
There was a problem hiding this comment.
Could we log a warning if we find a fuzzy query with the old format? Maybe the log could be throttled, printed only once per run or only once every x times. This could help in migrating to the new fuzzy format.
I think the PR is missing some tests (or do we already have these tests?)
- The
~character appears in the query but not as part of a fuzzy match. - The query contains several fuzzy match expressions.
- The query contains a mix of old and new style fuzzy matches.
...c/main/java/org/apache/jackrabbit/oak/plugins/index/elastic/query/ElasticRequestHandler.java
Outdated
Show resolved
Hide resolved
...c/main/java/org/apache/jackrabbit/oak/plugins/index/elastic/query/ElasticRequestHandler.java
Outdated
Show resolved
Hide resolved
|
@alagodasii CI in this repo fails mostly because it's running with low resources. If you have failures while building the repo locally, please report them. |
I added a log.trace call when this conversion happens. I don't think it would be correct to have a warning here because, so far, there is no plan of deprecating/migrating lucene in favour of elasticsearch or a more recent version of lucene. Queries executed against an Elastic index have to be backward compatible with Lucene queries based on version 4.x but not the other way around. A query with
I added all these cases. |
No description provided.