jackrabbit-oak-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chetan Mehrotra (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (OAK-3367) Boosting fields not working as expected
Date Wed, 09 Sep 2015 09:45:45 GMT

     [ https://issues.apache.org/jira/browse/OAK-3367?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

Chetan Mehrotra resolved OAK-3367.
       Resolution: Fixed
    Fix Version/s: 1.2.5

Updated the docs http://jackrabbit.apache.org/oak/docs/query/lucene.html#boost

Merged to 1.2 branch with 
* http://svn.apache.org/r1701961
* http://svn.apache.org/r1701958

> Boosting fields not working as expected
> ---------------------------------------
>                 Key: OAK-3367
>                 URL: https://issues.apache.org/jira/browse/OAK-3367
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: lucene
>            Reporter: Chetan Mehrotra
>            Assignee: Chetan Mehrotra
>             Fix For: 1.3.6, 1.2.5
>         Attachments: OAK-3367.patch
> When the boost support was added the intention was to support a usecase like 
> {quote}
> 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.
> {quote}
> 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

This message was sent by Atlassian JIRA

View raw message