Search with multiple spaces returns faulty results
-
At first I thought this error was related to my WordPress only, but after testing the official Demo (https://wp-dreams.com/demo/ajax-search-lite/) I see it is a plugin problem.
When I type in the search box several empty spaces: 1) the box comes out with bunch of entries (the whole site’s posts/pages, I believe), which it shouldn’t as it it not really a search query, 2) on top of it, those results do not respect the result’s per-entry character limitation of the settings, displaying the full post/page content.
Unfortunately, my programming expertise is limited and cannot help about it, but a solution could be: 1) not allowing more than one consecutive space to be typed in, and/or 2) consider valid queries just those that contain regular characters (letters and numbers)
Thanks
- The topic ‘Search with multiple spaces returns faulty results’ is closed to new replies.