Yes, it is true that empty nested queries are not supported - your empty parentheses. The exception is simply indicating that a right parenthesis is not permissible immediately after a left parenthesis.

What effect were you trying to achieve? Or was that just a typo on your part?

An empty top-level query typically defaults to matching all documents, or "*:*", so if you want that effect, use:

docKey:*:*

Two other possibilities:

docKey:*  -- all documents with a value in the field

*:* -docKey:*  -- all documents with no value in the field

-- Jack Krupansky

-----Original Message----- From: Cool Techi
Sent: Saturday, December 14, 2013 1:01 PM
To: solr-user@lucene.apache.org
Subject: Unknow Query exception

I am seeing the following exception in solr logs after regular intervals, we are not firing any query to have such error, what could be causing this?










ERROR - 2013-12-14 05:35:52.722; org.apache.solr.common.SolrException; org.apache.solr.common.SolrException: org.apache.solr.search.SyntaxError: Cannot parse 'docKey:()': Encountered " ")" ") "" at line 1, column 8.
Was expecting one of:
   <NOT> ...
   "+" ...
   "-" ...
   <BAREOPER> ...
   "(" ...
   "*" ...
   <QUOTED> ...
   <TERM> ...
   <PREFIXTERM> ...
   <WILDTERM> ...
   <REGEXPTERM> ...
   "[" ...
   "{" ...
   <LPARAMS> ...
   <NUMBER> ...
   <TERM> ...
   "*" ...


at org.apache.solr.handler.component.QueryComponent.prepare(QueryComponent.java:147)


Reply via email to