Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-94383

As a developer I can use Searcher to count matches only, without returning documents

Details

    Description

      A search request with size = 0 can be used to count matches on a query. The search response will hold the total count but no documents. Aggregations can be included in the request to provide secondary counts.

      com.liferay.portal.search.searcher.SearchRequestBuilder.size(Integer)

      com.liferay.portal.search.searcher.SearchResponse.getCount()

      Attachments

        Issue Links

          Activity

            People

              brian.lee Brian Lee
              andre.oliveira André Ricardo Barreto de Oliveira
              Kiyoshi Lee Kiyoshi Lee
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Packages

                  Version Package
                  7.2.0 GA1