WordPress version:4.7.5+theme:2014.
To prepare a post for testing.
Please write a sentence i am testing search for awk and publish it with title testforsearch.

select ID,guid,post_content from wp_posts where post_title="testforsearch";
+------+-----------------------------+-----------------------------+
| ID   | guid                        | post_content                |
+------+-----------------------------+-----------------------------+
| 3544 | http://hwy.local/wp/?p=3544 | i am testing search for awk |
+------+-----------------------------+-----------------------------+
1 row in set (0.00 sec)

There are no chrachters such as - and v in the post,you can see.

Now to input character awk and - and v in search engine.

I found that post testforsearch was selected,why?
It contains no strings - and v.
What is the rule for search engine in wp?
It is not the same as mysql select command.

select ID,post_title from wp_posts where post_content like "%awk%" and post_content like  "%-%" and post_content like  "%v%";

How to customize the search action in wp as the above mysql command?

Read more here: What is the rule for search engine in wp?


Solution:

If you know the solution of this issue, please leave us a reply in Comment section, to update the question.


Wordpress related questions and answers: