$conf, $runtime; function_exists('chdir') AND chdir(APP_PATH); $r = 'mysql' == $conf['cache']['type'] ? website_set('runtime', $runtime) : cache_set('runtime', $runtime); } function runtime_truncate() { global $conf; 'mysql' == $conf['cache']['type'] ? website_set('runtime', '') : cache_delete('runtime'); } register_shutdown_function('runtime_save'); ?>plugins - Accounting for search terms that may include a space, using SearchWP|Programmer puzzle solving
最新消息:Welcome to the puzzle paradise for programmers! Here, a well-designed puzzle awaits you. From code logic puzzles to algorithmic challenges, each level is closely centered on the programmer's expertise and skills. Whether you're a novice programmer or an experienced tech guru, you'll find your own challenges on this site. In the process of solving puzzles, you can not only exercise your thinking skills, but also deepen your understanding and application of programming knowledge. Come to start this puzzle journey full of wisdom and challenges, with many programmers to compete with each other and show your programming wisdom! Translated with DeepL.com (free version)

plugins - Accounting for search terms that may include a space, using SearchWP

matteradmin11PV0评论

As the title suggest I am having an issue with setting up the plugin SearchWP to correctly work with search terms (product names) that may, or may not, contain spaces. e.g. "ABC1" or "ABC 1".

I am not entirely 100% sure how to approach this issue.

Like terms are not appropriate as it only deals with single words. "ABC 1" would be considered 2 separate words.

Fuzzy logic doesn't appear to achieve the correct results e.g. returning results for "ABC 2" "ABC 3" ABC 4".

I have tried the approach of a custom field of search synonyms for each product. Again that hasn't had the desired results either.

Any advice or guidance on this matter would be greatly appreciated.

Many thanks

As the title suggest I am having an issue with setting up the plugin SearchWP to correctly work with search terms (product names) that may, or may not, contain spaces. e.g. "ABC1" or "ABC 1".

I am not entirely 100% sure how to approach this issue.

Like terms are not appropriate as it only deals with single words. "ABC 1" would be considered 2 separate words.

Fuzzy logic doesn't appear to achieve the correct results e.g. returning results for "ABC 2" "ABC 3" ABC 4".

I have tried the approach of a custom field of search synonyms for each product. Again that hasn't had the desired results either.

Any advice or guidance on this matter would be greatly appreciated.

Many thanks

Share Improve this question asked Jan 23, 2019 at 12:22 noelmcgnoelmcg 1991 silver badge12 bronze badges 5
  • SearchWP uses its own search engine, so any questsions about how it works should be directed to the plugin author/support community. It doesn't really have anything to do with WordPress development. – Jacob Peattie Commented Jan 23, 2019 at 12:39
  • @JacobPeattie Apologies, I had a feeling that might be an issue. Unfortunately they appear to have closed their support forum and there isn't any presence on wordpress. StackExchange was my next bet. – noelmcg Commented Jan 23, 2019 at 12:45
  • Sorry, I can contact the plugin author. Cheers
Post a comment

comment list (0)

  1. No comments so far