- October 2, 2019 at 12:26 pm #24187
I did some further research after recording the video below and it appears that the search is somehow pulling in css code from the page.
I know this because I searched a specific hex color code and it generates results. Again I’m using the exact match filter and only searching “content.” Any ideas on this one?
Thanks!October 2, 2019 at 12:55 pm #24190
If the CSS code is stored within the post content field within the database, it is basically treated as text on the database level, where the query is executed on. The database query cannot make a difference between useful and “irrelevant” text, therefore it matches that.
There might be a solution for this however. There is a secondary engine, the index table engine. It is basically tries to index the useful content on the pages – paragraph texts, titles etc.. and exclude all scripts, styles and other possibly irrelevant information.
This and this documentation chapters should include all the information you need, including video tutorials.
This should hopefully help eleminating some of the irrelevant content from the search.Best,
If you like my products, don't forget to rate them on codecanyon :)
October 2, 2019 at 2:37 pm #24191
Ok got it thanks for the fast response!
You must be logged in to reply to this topic.