Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-23059

Remove the _all field usage as it is going to be deprecated in ES 6.0

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 9.3-SNAPSHOT
    • Fix Version/s: 9.3
    • Component/s: Elasticsearch
    • Upgrade notes:
      Hide

      When requesting Elasticsearch using HTTP passthrough requests that use query_string or simple_query_string must be adapted to use explicitly the field `all_field` instead of relying on the default `_all` field that is now disabled.

      Show
      When requesting Elasticsearch using HTTP passthrough requests that use query_string or simple_query_string must be adapted to use explicitly the field `all_field` instead of relying on the default `_all` field that is now disabled.
    • Sprint:
      nxcore 9.3.7
    • Story Points:
      2

      Description

      The _all and include_in_all fields will be deprecated in 6.0; for instance we have this warning with adapted 2.x mapping:

      {10:23:17,259 WARN  [RequestLogger] request [PUT http://localhost:9200/nxutest/doc/_mapping] returned 2 warnings:
      [299 Elasticsearch-5.6.0-SNAPSHOT-adab020 "field [include_in_all] is deprecated, as [_all] is deprecated,
      and will be disallowed in 6.0, use [copy_to] instead." ...
      

      We should use new All query instead operation instead of simple_query on _all field.
      The non text field will not be indexed, also we could create an explicit "all" field using the recommended copy_to operation.
      See:

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 2 days, 2 hours, 30 minutes
                  2d 2h 30m