We are omitting from the schema and the indexing function several node fields (e.g. $node->sticky) which might be useful for searching or sorting.

CommentFileSizeAuthor
#1 index-more-376255-1.patch3.81 KBpwolanin

Comments

pwolanin’s picture

Status: Active » Needs review
StatusFileSize
new3.81 KB

This adds several fields (plus a little misc hook cleanup)

janusman’s picture

Status: Needs review » Reviewed & tested by the community

This patch adds boolean fields in the Solr index for promote, moderate, sticky, tnid, translate, and changes the already-included status and language from an integer to a boolean.

It works, killed solr process, replaced patched schema.xml, restarted, deleted the index from within Drupal and reindexed. Solr now responds to parameters like bq=sticky:true^10.0 which shows sticky nodes at the beginning of search results.

It'd be interesting to include these on/off settings as facets. Other solr implementations have them show as checkboxes (like "Show only available items" in library catalogs).

pwolanin’s picture

actually language remains a string - it was just moved around.

pwolanin’s picture

Status: Reviewed & tested by the community » Fixed

committed - now we just need a little added to the admin UI to boost on these like we do for node types.

Status: Fixed » Closed (fixed)

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