[英]Solr addfilterquery
I want to perform a searchquery with Solr (in which I have almost zero experience). 我想用Solr(其中我几乎有零经验)执行searchquery。 In MySQL in would be something like this:
在MySQL中将是这样的:
$where .= "(r.xcoord BETWEEN '".$coordinaten["xcoord"]["begin"]."' AND '".$coordinaten["xcoord"]["eind"]."') AND (r.ycoord BETWEEN '".$coordinaten["ycoord"]["begin"]."' AND '".$coordinaten["ycoord"]["eind"]."')";
How can I achieve this in Solr? 如何在Solr中实现这一目标?
Kind regards, 亲切的问候,
Pim 皮姆
After a few more hours on google I found this post which helped me out :) 在Google呆了几个小时后,我发现了这篇帖子对我有所帮助:)
http://www.solrtutorial.com/solr-query-syntax.html http://www.solrtutorial.com/solr-query-syntax.html
And this post on SO 这篇关于SO的帖子
尝试这个
q=*:*&fq=xcoord:[xcoord_begin TO xcoord_end]&fq=ycoord:[ycoord_begin TO ycoord_end]
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.