我正在编写一个试图进行地理过滤的Solr查询。
我已经在带有括号和不带括号的情况下运行了查询,并得到了不同的结果。
没有括号:
fq={!geofilt pt=lat,long sfield=geo d=num} OR {!geofilt pt=lat2,long2 sfield=geo d=num}
带有括号:
fq=({!geofilt pt=lat,long sfield=geo d=num} OR {!geofilt pt=lat2,long2 sfield=geo d=num})
查询是否需要括号才能正确执行“或”操作?
答案 0 :(得分:0)
是的,查询确实需要括号。不带括号的结果与{!geofilt pt=lat,long sfield=geo d=num}
相同。