Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comment | File | Size | Author |
---|---|---|---|
#3 | 1823590-2.patch | 1.41 KB | Nick_vh |
7.x-1.1-apachesolr_tags.patch | 1.42 KB | Josh Waihi | |
Comments
Comment #2
Nick_vhretesting
Comment #3
Nick_vhfixing some bad logic
Comment #4
Nick_vhFixed - no backport needed