We're updating the issue view to help you get more done. 

Improve boost handling when translating Lucene queries to Elasticsearch

Description

  1. We do some really strange stuff in ToElasticsearch.fromLuceneFilter, altering the boost of a query while we should only be reading information. On top of that, we don't even need to care about the boost, since we are translating a filter, which should not affect the score.

  2. We don't take query.getBoost() into account for some queries, most notably BooleanQuery

  3. We don't translate some easy to translate query subtypes that only affect the boost of their delegate, such as CachingWrapperQuery or BoostQuery

The very last issue, in particular, should be fixed before we address HSEARCH-2208, because we'll have to use CachingWrapperQuery in that ticket.

Environment

None

Status

Assignee

Yoann Rodière

Reporter

Yoann Rodière

Labels

None

Suitable for new contributors

None

Feedback Requested

None

Components

Fix versions

Priority

Major