The field boost settings page only features default fields right now, because of what appears to be a bug in the schema detection:

$field->schema{1} == 'I'

should be

$field->schema{0} == 'I'

(at least on our Apache Solr Trunk server)

More over, only 'text' fields are displayed by default. I believe it would be useful to also display 'string' fields by default.

Comments

damien tournoud’s picture

Status: Active » Needs review
StatusFileSize
new1.4 KB

Here is a patch implementing the two changes above.

robertdouglass’s picture

Haven't confirmed the bug or the fix yet, but prefer the wording "// By default we only show text and string fields." instead of "// By default we only show character fields."

pwolanin’s picture

Status: Needs review » Needs work

It should only be text fields - since generally string fields are for sorting, etc.

pwolanin’s picture

Category: bug » feature
StatusFileSize
new918 bytes

Looks like I just made a mistake in terms of 1 vs 0 as the offset.

Committing this minimal patch to 6.x-1.x fix the bug - any other change needs more consideration I think.

Robert - can you port to 2.x?

robertdouglass’s picture

Version: 6.x-1.x-dev » 6.x-2.x-dev

Yup.

robertdouglass’s picture

Status: Needs work » Fixed

in 6.2.

Status: Fixed » Closed (fixed)

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