: Subject: What is wrong with this blank query?
: 
: http://localhost:8983/solr/doc1/select?q=text:()&debugQuery=on&defType=lucene

that's not a "blank" query ... when you use the parens you are telling the 
query parser you want ot create a BooleanQuery object, and then you aren't 
including any clauses in that BooleanQuery object, which is invalid.

It might be more clear why this makes no sense if you remember that 
writing "text:()" is equivilent to writing "()" -- that "text:" prefix 
just instructs the parser that "for the purposes of parsing this boolean 
query, treat "text" as the default field name.

that's why these queries are equivilent...

        foo_s:(bar_s:x y)
        (bar_s:x foo_s:y)

the fact that you have "text:" in front of the parens doesn't change the 
fact that an empty boolean query makes no sense.


-Hoss

Reply via email to