Uploaded image for project: 'Hibernate Search'
  1. HSEARCH-2703

Improve boost handling when translating Lucene queries to Elasticsearch

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.8.0.Beta2
    • Component/s: backend-elasticsearch
    • Labels:
      None

      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 Closed , because we'll have to use CachingWrapperQuery in that ticket.

        Attachments

          Issue links

            Activity

              People

              • Assignee:
                yrodiere Yoann Rodière
                Reporter:
                yrodiere Yoann Rodière
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: