I have a requirement where I by I don't want to index content older than 10 years. While I can add my own callback to evaluate if a node should be indexed or not, the apachesolr module will still needlessly evaluate all the content older than 10 years. It also means the apachesolr module can't determine how much content should be indexed and compare that to how much actually is.

If there were tags added to the select queries used, that would allow me to prevent the module from even considering indexing content older than 10 years.

Attached is a patch I currently use to achieve this.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Status: Needs review » Needs work

The last submitted patch, 7.x-1.1-apachesolr_tags.patch, failed testing.

Nick_vh’s picture

Status: Needs work » Needs review

retesting

Nick_vh’s picture

FileSize
1.41 KB

fixing some bad logic

Nick_vh’s picture

Status: Needs review » Fixed

Fixed - no backport needed

Status: Fixed » Closed (fixed)

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