-
Task
-
Resolution: Released
-
Should have
-
None
-
4
-
Code Refactoring, Search
-
Sprint #135
-
jupiter
Currently our search code is executed after the "main WordPress loop". In this main loop the search query is executed, however in our search code we build another search query (has some different parameters than the one in the main loop!) and execute it. We only use the result of the second query.
We should only be executing a single query. This could be done in 2 ways:
- Make our search code work with the "main" loop. Seems to make most sense but could be a lot of work to make all our logic work with that.
- Keep the current code and prevent the main query from being executed. End result is more complex, but could be a quick fix. Can be done by unsetting the filter from the ElasticPress plugin.
- causes
-
PLANET-5160 Search seems broken, always no result (in admin)
- CLOSED