Try answering this question: What do you imagine the semantics would be for
that query. I mean, what kind of results do you think it should return that
would be obvious and apparent and useful for an average application. Solr is
simply telling you that it sure looks mighty suspicious!
Why would you intentionally send a request to Solr to get... no data? I
mean, this sounds like another "XY Problem" - an apparent proposed solution,
but to what problem? Tell us the problem you are trying to solve.
-- Jack Krupansky
-----Original Message-----
From: Shankar Sundararaju
Sent: Wednesday, June 12, 2013 1:18 PM
To: solr-user@lucene.apache.org
Subject: What is wrong with this blank query?
http://localhost:8983/solr/doc1/select?q=text:()&debugQuery=on&defType=lucene
I get this error:
org.apache.solr.search.SyntaxError: Cannot parse 'text:()': Encountered "
")" ") "" at line 1, column 6. Was expecting one of: <NOT> ... "+" ... "-"
... <BAREOPER> ... "(" ... "*" ... <QUOTED> ... <TERM> ... <PREFIXTERM> ...
<WILDTERM> ... <REGEXPTERM> ... "[" ... "{" ... <LPARAMS> ... <NUMBER> ...
<TERM> ... "*" ...
Why does lucene query parser support blank field? I know the work around is
-text:[* TO *]
But I like text:() as it is more logical. Is there any reason?
Thanks
-Shankar