lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From SolrLover <>
Subject How to pass null OR empty values to fq?
Date Mon, 15 Jul 2013 15:43:41 GMT

I am trying to pass empty values to fq parameter but passing null (or empty)
doesn't seem to work for fq.

Something like...

q=*:*&fq=(field1:test OR null)

We are trying to make fq more tolerant by making not fail whenever a
particular variable value is not passed..


/select?q=*:*&fq=lname:$lname --> lname is empty here and I dont want the
query to fail rather than just do a pass through and return everything
(returned by q). I can't really use swich plugin directly as I have more
number of cases to handle hence I am trying to handle it by creating a
custom component extending the Qparserplugin..

View this message in context:
Sent from the Solr - User mailing list archive at

View raw message