Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.0
    • Component/s: ElasticSearch
    • Labels:

      Description

      Queries and filters have been merged, all filter clauses are now query clauses. Instead, query clauses can now be used in query context or in filter context.
      https://www.elastic.co/blog/better-query-execution-coming-elasticsearch-2-0
      {
      “filtered” : {
      “query”:

      { query definition },
      “filter”: { filter definition }
      }
      }
      should now be replaced with

      {
      “bool” : {
      “must”: { query definition }

      ,
      “filter”:

      { filter definition }

      }
      }
      Note that the query DSL is still backward compatible in spite of this change: if you try to run a filtered query, it will parse as a bool query internally. However, we would encourage you to migrate to the new syntax as the filtered query will be removed in a future release.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                simon.brandhof Simon Brandhof
                Reporter:
                eric.duquesnoy Eric Duquesnoy (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Due:
                  Created:
                  Updated:
                  Resolved: