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

Ryan McKinley updated SOLR-418:
-------------------------------

    Attachment: SOLR-418-QueryBoosting.patch

Here is an updated patch that implements sorting.  Rather then try to mix 
boosted and normal results, this uses a custom sort to put the boosted results 
at the top.  The boost.xml format is now:

{code:xml}
 <query text="ZZZZ">
  <doc id="1" />
  <doc id="2" />
  <doc id="3" />
 </query>
{code}

For the query "ZZZZ" documents 1,2,3 will be the first docs returned followed 
by anything normally matching "ZZZZ"

If the query specifies a sort, it will be respected.  Only SCORE sorts are 
modified to boost 
the configured documents.


> Editorial Query Boosting Component
> ----------------------------------
>
>                 Key: SOLR-418
>                 URL: https://issues.apache.org/jira/browse/SOLR-418
>             Project: Solr
>          Issue Type: New Feature
>          Components: search
>            Reporter: Ryan McKinley
>             Fix For: 1.3
>
>         Attachments: SOLR-418-QueryBoosting.patch, 
> SOLR-418-QueryBoosting.patch
>
>
> For a given query string, a human editor can say what documents should be 
> important.  This is related to a lucene discussion:
> http://www.nabble.com/Forced-Top-Document-tf4682070.html#a13408965
> Ideally, the position could be determined explicitly by the editor - 
> otherwise increasing the boost is probably sufficient.
> This patch uses the Search Component framework to inject custom document 
> boosting into the standard SearchHandler.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to