[英]Trying to use an OR Apache Solr search filter, but it defaults to the last value in URL
因此,我正在尝试在Drupal中使用以下URL进行Apache Solr搜索:
http://domain.com/zh-CN/resource-library?f[0]=sm_field_resource_type%3ASupport%20Documents&f[0]=sm_field_resource_type%3ADatasheets
但是,这只是拉高了数据表。
但是,如果我仅做第一部分(在&之后丢失所有内容),则仅获得支持文档。
如何在Apache Solr中进行OR搜索?
我一直在阅读有关此问题的先前示例,但它们似乎与我的特定情况不符
我不认识Drupal。 但是Solr中的OR查询查询应该像
http://domain.com/en-US/resource-library?q=sm_field_resource_type:"Support Documents" OR sm_field_resource_type:Datasheets
假设http://domain.com/en-US/resource-library?
是您的Solr URL。 按照Solr标准,用q代替f[0]
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.