神奇的弹性搜索插件,没有搜索结果

时间:2015-08-05 16:54:18

标签: elasticsearch wordpress-plugin

Fantastic ES plugin生成的查询始终不会返回搜索结果。查询生成的SQL语句:

SELECT SQL_CALC_FOUND_ROWS wp_posts.* 
FROM wp_posts 
WHERE 1=1 
  AND wp_posts.ID IN (0)
  AND wp_posts.post_type IN (\'post\', \'page\',\'attachment\', \'events\', \'testimonies\', \'leadership\') 
  AND (wp_posts.post_status = \'publish\' OR wp_posts.post_author = 1 AND wp_posts.post_status = \'private\') 
ORDER BY wp_posts.post_type ASC 
LIMIT 0, 500'

它始终有wp_posts.ID IN (0),似乎总是假的?所有帖子都在elasticsearch中,我可以从命令行运行对数据的查询。我是Elasticsearch和这个插件的新手,也许我错过了一些简单的东西?

0 个答案:

没有答案