Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-3367

Boosting fields not working as expected

    XMLWordPrintableJSON

    Details

      Description

      When the boost support was added the intention was to support a usecase like

      For the fulltext search on a node where the fulltext content is derived from multiple field it should be possible to boost specific text contributed by individual field. Meaning that if a title field is boosted more than description, the title (part) in the fulltext field will mean more than the description (part) in the fulltext field.

      This would enable a user to perform a search like /jcr:root/content/geometrixx-outdoors/en//element(*, cq:Page)[jcr:contains(., 'Keyword')] and get a result where pages having 'Keyword' in title come above in search result compared to those where Keyword is found in description.

      Current implementation just sets the boost while add the field value to fulltext field with the intention that Lucene would use the boost as explained above. However it does not work like that and boost value gets multiplies with other field and hence boosting does not work as expected

        Attachments

        1. OAK-3367.patch
          13 kB
          Chetan Mehrotra

          Issue Links

            Activity

              People

              • Assignee:
                chetanm Chetan Mehrotra
                Reporter:
                chetanm Chetan Mehrotra
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: