I am using Apache Solr to search companies on a upcoming website - ebharatbase.com. Taxonomies are handled through apache solr itself.

After upgrading to dev version of 7.x, our taxonomy links stopped working with error

Exception: "400" Status: can_not_sort_on_unindexed_field_created: can_not_sort_on_unindexed_field_created

We edited, apachesolr/contrib/apachesolr_taxonomy.module, line 44

Replaced:
$solrsort = variable_get('apachesolr_search_taxonomy_sort', 'created desc');

With:
$solrsort = variable_get('apachesolr_search_taxonomy_sort', 'ds_created desc');

It seems "created" was moved to "ds_created"

CommentFileSizeAuthor
#2 1092910-date-field-fixup-2.patch2.63 KBpwolanin

Comments

pwolanin’s picture

Status: Active » Fixed

Ah, likely I missed some changes to that module for the schema re-names. Quite possibly other sorts are broken too.

pwolanin’s picture

Title: Taxonomy handling support - Bug » missing field conversions for new schema (e.g. created to ds_created)
Status: Fixed » Needs review
StatusFileSize
new2.63 KB

quick pass to find missing conversions.

pwolanin’s picture

Status: Needs review » Fixed

committed.

Status: Fixed » Closed (fixed)

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