通常,转储生成的SQL查询并查看以下内容是最可靠的:
SELECT wp_posts.ID
FROM wp_posts
WHERE 1=1
AND (((wp_posts.post_title LIKE \'%keyword%\')
OR (wp_posts.post_content LIKE \'%keyword%\')))
AND wp_posts.post_type = \'post\'
AND ((wp_posts.post_status = \'publish\'))
ORDER BY wp_posts.post_date DESC LIMIT 0,5
本地搜索只考虑标题和内容两件事。