我有一个包含食谱的Solr安装。Solr查询行为
每个食谱有多个成分,我目前正在建立一个食谱搜索,你可以键入'includes/excludes',然后我有一个自制的重量系统,在此之后进来。
但是查询建筑已关闭,因此需要改进。
// Works perfect - 109 results
ingredients:chicken OR tomatoes OR bacon
// Down to 7 results - Definitely wrong
ingredients:chicken OR tomatoes OR bacon AND -ingredients:garlic
我试图建立这个查询的任何哪种方式,但无法找出可以接受的“模糊过滤器”
这可能帮助:http://stackoverflow.com/questions/634765/using-or-and-not-in-solr-query – 2011-04-05 21:47:18
并非如此很多,我不知道如何将它应用到我的查询 – bluedaniel 2011-04-05 22:57:31
它似乎是同一个问题......你有没有尝试过所有的建议?你有没有读过solr-user线程? – 2011-04-06 00:31:41