How to do an IN query in Solr?

前端 未结 2 1754
有刺的猬
有刺的猬 2020-12-28 13:10

i\'m having documents with a multivalued field \"sharedTo\" which contains the groups that the document is shared to. Now I want to find all documents that are shared to at

2条回答
  •  没有蜡笔的小新
    2020-12-28 13:48

    if your default operator is OR, then you can just give the query as

    sharedTo:('foo' 'bar')

    If your default operator is AND, then you'll have to do it like this: sharedTo:(foo OR bar)

提交回复
热议问题