Field boosting on a per-index basis seems to have no effect when doing a multi-index search, even if search matches belong to only one index.

To reproduce:

  1. Create at least 2 search indexes
  2. Give a hight boost to one field in one of the index
  3. Create a multi-index view and perform a search that will render results on only one index

This makes it very difficult to give higher priority to specific contents.

Please find attached patch that solves this issue.

CommentFileSizeAuthor
field-boost-not-respected-2462947-0.patch533 bytesbmunslow

Comments

drunken monkey’s picture

Status: Active » Fixed

Thanks a lot for reporting this and already providing a patch!
The patch looks very good, and the problem really is obvious when looking at the code.
So, committed. Thanks again!

Small tip for the future: you can also just move an issue into a different project, you don't need to close it and create a new one.
Also, when posting a patch, please set the issue status to "Needs review" (or "Needs work", if the patch isn't finished yet).

bmunslow’s picture

Thanks for your pro tips @drunken_monkey, point taken!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.