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

Search MultiValue Facet - Add booleanClause selection to FacetConfiguration

    Details

      Description

      MultiValueFacet has BooleanClause hardcoded to BooleanClauseOccur.SHOULD on multiple terms.
      ---------
      TermQuery termQuery = TermQueryFactoryUtil.create(searchContext, getFieldName(), value);

      try {
      facetQuery.add(termQuery, BooleanClauseOccur.SHOULD);
      }

      ---------
      As a result multiple terms are always concatenated in an OR query.

      Please enable users to specify clause in configuration, as an example

      booleanClause : AND
      should result in
      BooleanClauseOccur.MUST

      This way we can create facets for assetCategories with multiple values selected, resulting in a drilled - down search.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              matteo.s matteo (Inactive)
              Votes:
              5 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Packages

                  Version Package