Got the idea from #1131376: Exclude from Drupal search results I believe Search Index Options is the ideal module to implement specific node exclusions from search indexing.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | exclude-nodes-3043456-3.patch | 7.47 KB | nickonom |
Got the idea from #1131376: Exclude from Drupal search results I believe Search Index Options is the ideal module to implement specific node exclusions from search indexing.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | exclude-nodes-3043456-3.patch | 7.47 KB | nickonom |
Comments
Comment #2
nickonom commentedComment #3
nickonom commentedHere is the initial patch.
Comment #5
altagrade commentedComment #6
nickonom commentedThe last release works well for excluding nodes of content types, which're set to be included in search index, though with the following issues and room for improvement detected.
1) If none of content types selected, then all nodes were supposed to be indexed, which means any node should be possible to exclude individually. However, in this scenario the
Search index optiondisappears from vertical tabs completely, so despite expected behavior, it's not possible to make exclusions on node level.2) If some content types are opted in for indexing, then the last release correctly allows users to effectively exclude nodes of the opted in content types. However, what if users want to enforce indexing excluded content types on node level? In other words, let's say content type `article` is completely excluded from indexing, however users want specific nodes of `article` type to be searchable. I believe the re-work of the last release should cover also this scenario.
3) Besides, somehow the `search_index.js` file didn't get packed, so it's giving `page not found` notice.
Sorry for too frequent releases, but the mussing file issue needs to be fixed anyway, so I will be rolling out another release addressing two other ideas above later today.
Comment #7
nickonom commentedFixed with the release of 7.x-3.1.