How to OR null value in Apache Solr query?

后端 未结 3 905
夕颜
夕颜 2021-02-13 23:24

The last option to solve this for me was to ask StackOverflow.

I am trying to create a Solr query to get documents that have a specific value on one of its fields OR tha

相关标签:
3条回答
  • 2021-02-13 23:45

    (-name:[* TO *] AND *:*) OR name:john

    0 讨论(0)
  • 2021-02-14 00:02

    try the below query -

    q=(name:john OR -(name:[* TO *]))
    
    0 讨论(0)
  • 2021-02-14 00:03

    You can also use it like this.

    &fq=name:john OR !name:['' TO *]
    
    0 讨论(0)
提交回复
热议问题