【问题标题】:Search Null and a particular value in Solr在 Solr 中搜索 Null 和特定值
【发布时间】:2013-03-18 20:28:27
【问题描述】:

我有一列 COUNTRY AS

<field name="COUNTRY" type="string" indexed="true" stored="true">

我需要搜索国家的值作为美国或空白值,但我无法做到。

我试过了

fq=country[ U]

fq=country['' U]

fq=country[NULL U]

但没有任何效果。

【问题讨论】:

    标签: solr


    【解决方案1】:

    基于对这些先前问题的回答

    您应该能够使用以下之一:

     -(-(country:usa)+(country:{* TO *})) 
    
     (-country:[* TO *] AND *:*) OR country:usa
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2015-07-13
      • 2014-06-24
      • 1970-01-01
      • 2023-04-03
      • 2012-02-27
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多