Question

I'm using Solr 4.0 I want to tag my two filters which joined by "AND" operators.

e.g query is

(f_Memory:1+GB) AND (Manufacturer:ASUS)

I want to tag like this

{!tag=dm}(f_Memory:1+GB) AND {!tag=dt}(Manufacturer:ASUS)

but I'm getting error

org.apache.lucene.queryparser.classic.ParseException: Cannot parse '(f_Memory:1+GB) AND {!tag=dt}(Manufacturer:ASUS)': Encountered " "}" "} "" at line 1, column 28.
Was expecting one of:
    "TO" ...
    <RANGE_QUOTED> ...
    <RANGE_GOOP> ..

Any idea how to do it?

Was it helpful?

Solution

You can try separating them as the effect of AND will be the same.

fq={!tag=dm}(f_Memory:1+GB)&fq={!tag=dt}(Manufacturer:ASUS)
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top