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

Elasticsearch PageProvider should limit navigation to 10k limits

    XMLWordPrintable

    Details

      Description

      Since NXP-19194 we use Elasticsearch 2.x and it implies a limit in the number of results for a query.
      The limit is set by the index.max_result_window elasticsearch option which is 10000 by default.
      Note that the limitation is not only that you can not return more than 10k (the size param)
      but also you can not get results above 10k, so from + size must be < 10k.

      A PageProvider that returns more than 10k match will work until asking for a page above 10k.

      Page Provider should limit the navigation to a certain number of pages to stay on the result window.


      The page provider navigation is now limited to the first 10k documents (this is the default maximum result window defined in Elasticsearch).
      When there is more than 10k results there is no more button to go to the last page or to go to a next page above this range.
      The limit of 10k can be changed using the configuration service by setting the property: org.nuxeo.elasticsearch.provider.maxResultWindow.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                1 Vote for this issue
                Watchers:
                5 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 - 5 hours
                  5h