Now that we have an entity field, and comments, files, and nodes going into it, we need to be able to adjust the relative scoring between them. Site owners may want to say, for example, that comments and files should score lower than nodes. This patch inspects the index with a facet query and then enumerates the entities found and lets the administrator add a boost to them in the same manner as all other fields.

CommentFileSizeAuthor
entity_boost.patch4.28 KBrobertdouglass

Comments

wmostrey’s picture

This works completely as advertised and expected! While the apachesolr_attachments modules used to display file results on top, this is no longer the case. As far as I'm concerned: RTBC.

johannesdr’s picture

Status: Needs review » Reviewed & tested by the community

Tested the patch on the latest dev version and it works as expected.

wmostrey’s picture

Patch still applies to the latest 6.x-2.x release, still RTBC.

jpmckinney’s picture

Status: Reviewed & tested by the community » Needs work
+    $response->x;

Wha?

jpmckinney’s picture

Title: Impossible to adjust entity scoring » Add entity biasing
Version: 6.x-2.x-dev » 7.x-1.x-dev
jpmckinney’s picture

nick_vh’s picture

Status: Needs work » Closed (duplicate)