solrj - How to tag two filters which are joined by "AND" operator in Solr? -


i'm using solr 4.0 want tag 2 filters joined "and" operators.

e.g query

(f_memory:1+gb) , (manufacturer:asus) 

i want tag this

{!tag=dm}(f_memory:1+gb) , {!tag=dt}(manufacturer:asus) 

but i'm getting error

org.apache.lucene.queryparser.classic.parseexception: cannot parse '(f_memory:1+gb) , {!tag=dt}(manufacturer:asus)': encountered " "}" "} "" @ line 1, column 28. expecting 1 of:     "to" ...     <range_quoted> ...     <range_goop> .. 

any idea how it?

you can try separating them effect of and same.

fq={!tag=dm}(f_memory:1+gb)&fq={!tag=dt}(manufacturer:asus) 

Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -