lucene-solr-user mailing list archives

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

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..

Ex:

/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: http://lucene.472066.n3.nabble.com/How-to-pass-null-OR-empty-values-to-fq-tp4078081.html
Sent from the Solr - User mailing list archive at Nabble.com.

Mime
View raw message