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

As a developer, I can set the boosting of an indexed document

    Details

      Description

      This would allow developers to say that an asset is very important and other is not really interesting to be shown in search results.

      Document document = getBaseModelDocument(PORTLET_ID, category);

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

      // Boosting for the whole document - makes document appear first in search results
      document.setBoosting(Boosting.HIGH) // HIGH is a constant from

      {LOW, MEDIUM, HIGH}

      (for example)

        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:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Packages

                  Version Package