Postponed
Project:
Drupal core
Version:
main
Component:
search.module
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
17 Aug 2015 at 11:15 UTC
Updated:
4 Aug 2020 at 21:39 UTC
Jump to comment: Most recent
Comments
Comment #2
alexpottComment #3
alexpotthttps://www.drupal.org/node/2552497
Comment #4
jhodgdonThis needs a beta evaluation -- seems like it might be 8.1.x material rather than 8.0.x at this point?
Adding a few related issues (somewhat related anyway).
Comment #10
joelpittetComment #15
andypostAs #3075703: Move search text processing to a service coimmited this method is only one to clean-up
Also closed as outdated #257007: Convert hook_search_preprocess() into a plugin
Comment #16
kim.pepperThe filter interface is
\Drupal\filter\Plugin\FilterInterface::process($text, $langcode)whilesearch_excerpt($keys, $text, $langcode)takes the $keys (keywords) to highlight.How would we handle this?
Comment #17
dwwRe: #16: Eeek, yeah. That seems like a fundamental problem with this approach. :( I don't think a generic text filter can solve this problem, since there's no way to filter differently with different search keywords for context. Unless we do something completely unholy with global variables, or totally change the API for text filters. Neither of which seem wise.
Tempted to say this has to be "won't fix" and we need to search (sorry 😉) for another way to kill this procedural function than the filter system.
Comment #18
catchChanging the API would probably be #226963: Context-aware text filters (provide more meta information to the filter system) (twelve years old!).
Comment #19
dwwYup, having flashbacks to #246313: hack to rely on nodeapi() causes tags to only be prepared but not processed in many cases and #1095014: Remember node context without <dme:context> tags. ;)
So, do we postpone this on #226963?
Comment #20
catchYes let's do that. If we come up with a different approach we can always unpostpone and re-title, but there's no suggestion yet.
Comment #21
dwwAgreed. Updating title and summary accordingly.
Cheers,
-Derek