I've set up the type specific boost for a particular content type with a boost of 21. I've set all other types of boosts that I could find to 1. So this should mean that the CT with boost 21 should always be ranked above the other CT's. But it doesn't seem to do that. When I look inside the code in the Database backend then I also don't seem to see code that uses the boost in the Item class. Did I configure something wrong or is this functionality not implemented for DB search?

Comments

Johnny vd Laar created an issue. See original summary.

drunken monkey’s picture

Status: Active » Needs review

Oh, you're right! Thanks a lot for reporting! Seems we completely forgot support for this in the DB backend when adding this new boost type (we didn't support this in D7).
The attached patch should fix this, please test! And thanks again for reporting this!

drunken monkey’s picture

drunken monkey’s picture

Version: 8.x-1.5 » 8.x-1.x-dev

Johnny vd Laar’s picture

Thanks a lot. Next week we will test this!

Johnny vd Laar’s picture

Status: Needs review » Reviewed & tested by the community

Yes this seems to work on my site. Thanks a lot!

  • drunken monkey committed 091783b on 8.x-1.x
    Issue #2938646 by drunken monkey, Johnny vd Laar: Fixed item-boosts in...
drunken monkey’s picture

Component: General code » Database backend
Status: Reviewed & tested by the community » Fixed

Good to hear, thanks for testing!
Committed.

Status: Fixed » Closed (fixed)

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