I found the "field weights" section at admin/settings/apachesolr/query-fields somewhat confusing, since I did not understand at all how the boosting works with different types of fields. In particular, if you "omit" the body field, text in the node body can still be searched if it appears within an HTML tag (such as <h2>) that has a weight assigned to it.

Implementation details aside, I think human-readable descriptions for the fields would help here (not sure how hard this is since I'm not sure about the various origins of all the fields). Also, I think phrasing things in terms of "points" rather than "weights" might make more sense. For example:

Specify here which fields are more important when searching. Give a field more points to make it more important. Text that does not accumulate any points below will not be searched.

If text appears in the node body, give it:
* 21 points
* 13 points
* ...
* 1 point
* No points

If text is enclosed in <h2> or <h3> tags, give it:
* 21 points
* 13 points
* ...
* 1 point
* No points

(I'm assuming here that Lucene treats the weights as additive, or at least close enough to additive that it makes sense to refer to them this way.)

Does this make sense and sound like a good idea?

Comments

pwolanin’s picture

janusman’s picture

pwolanin’s picture

Status: Active » Needs review
StatusFileSize
new6.59 KB

Ok, will have to look - just started on some of the text.

pwolanin’s picture

Title: Improve usability of field weights » Improve (reorganize/clarify) admin screens and usability of field weights
pwolanin’s picture

StatusFileSize
new6.43 KB

This one doesn't get everything, but perhaps is commitable as an interim.

pwolanin’s picture

StatusFileSize
new8.95 KB

Quick implementation of field name mapping too.

pwolanin’s picture

StatusFileSize
new9.64 KB

move the bulk of the mapping function to the admin.inc file.

pwolanin’s picture

Status: Needs review » Fixed
StatusFileSize
new10.6 KB

committed to 6.x

Status: Fixed » Closed (fixed)

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