Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Search
- This topic has 3 replies, 2 voices, and was last updated 4 years, 4 months ago by
Ernest Marcinko.
-
AuthorPosts
-
January 14, 2022 at 4:56 pm #36266
InkIT23
ParticipantWhen we Search for Strawflowers (with an S) the search doesn’t pull anything
see screenshot attached. You will see it pulls strawflower
what is it pulling? Search “strawflower” results are great. Search “strawflowers, with an s, doesn’t pull anything.
this is when we search Strawflower
Is there a setting where we can have a filter/search that is not exact.
Thanks, Nicole
January 17, 2022 at 1:11 pm #36280Ernest Marcinko
KeymasterHi Nicole,
This happens, because the missing results does not contain that keyword. From the plugin perspective the two keywords are not interpreted as the same word in singular/plural – but two completely different words. For that, a much more advanced linguistics engine would be required, which is out of scope of this cheap plugin.
You can try an automated solution, which includes custom code snippet. Try adding this code to the functions.php file in your theme/child theme directory – make sure to have a full server back-up first for safety. For more details you can check the safe coding guidelines.
Then, you also need to enable the index table engine and configured it. Once it is set up and enabled, the custom code will force singular/plurar conversions and index those as well.
January 18, 2022 at 9:25 pm #36301InkIT23
ParticipantHi. we did try and it didn’t work.
how about Synonyms?January 19, 2022 at 11:04 am #36310Ernest Marcinko
KeymasterSynonyms will work too of course, but it is a bit more work to add the keywords manually.
That code should work, I recently recommended it to someone else too. Can you try re-creating the index after you add the code? That should do the trick.
-
AuthorPosts
- You must be logged in to reply to this topic.