Solr query which return only those docs whose all tokens are from given list -


i have solr docs in tags field indexed :

doc1 -> tags:t1 t2   doc2 -> tags:t1 t3   doc3 -> tags:t1 t4 doc4 -> tags:t1 t2 t3   

query 1: docs tags:t1 , tags:t3 works , give doc2 , doc4

query 2: docs tags must 1 of these [t1, t2, t3] expected : doc1, doc2, doc4
how model in solr query?

check link more

http://www.solrtutorial.com/solr-query-syntax.html

https://wiki.apache.org/solr/solrquerysyntax

q=tags:(t1 or t2 or t3)   tags:(t1 , t2 , t3)   tags:(t1 , t2 or t3) 

Comments

Popular posts from this blog

android - How to save instance state of selected radiobutton on menu -

python 3 IndexError: list index out of range -

IF statement in MySQL trigger -