-
Notifications
You must be signed in to change notification settings - Fork 0
Closed
Labels
bugSomething isn't workingSomething isn't working
Milestone
Description
The
$args["_post_process"] = falsequery argument within SearchAttachments.php was added a long time ago to prevent some compatibility issues as post processing was called separately for indexed queries. This is now not the case and should be removed.
It causes image parsing as well as advanced meta fields not to follow up. Other than a quick fix a new hierarchy should be added so that there is a separate index table search class for media files.
-
Move the postProcess function from theSearchAttachmentsto a Trait -
RenameSearchAttachmentstoSearchMediausing the Trait -
CreateSearchMediaIndexusing the Trait -
Implement the distinction inSearchQuery.php
Final solution
No trait needed. Reversed logic, inheriting from SearchIndex first.
SearchMediaIndex extends SearchIndex-> this implements the custompostProcess()SearchMedia extends SearchMediaIndex-> this implements the regulardoSearch(), inherits the correctpostProcess()fromSearchMediaIndex
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working
Type
Projects
Status
Done