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

As a developer, I can set the boosting of a field for a document

    Details

      Description

      This would allow us to make some fields very relevant for the search result and some fields not to be considered for search results:

      Document document = getBaseModelDocument(PORTLET_ID, category);

      document.addKeyword(Field.ASSET_CATEGORY_ID,category.getCategoryId());

      document.addKeyword(Field.ASSET_CATEGORY_NAME,category.getName(), Boosting.HIGH);

      document.addKeyword(Field.ASSET_CATEGORY_ID,category.getCategoryId(), Boosting.LOW);

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              support-lep@liferay.com SE Support
              Reporter:
              eudaldo.alonso Eudaldo Alonso
              Recent user:
              Kiyoshi Lee
              Participants of an Issue:
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Packages

                  Version Package