https://lucene.apache.org/solr/4_2_0/solr-core/org/apache/solr/search/SwitchQParserPlugin.html

Hoss cares about you!


On Wed, Jul 10, 2013 at 10:40 PM, Learner <bbar...@gmail.com> wrote:

> I am trying to make a variable in fq optional,
>
> Ex:
>
> /select?first_name=peter&fq=$first_name&q=*:*
>
> I don't want the above query to throw error or die whenever the variable
> first_name is not passed to the query instead return the value
> corresponding
> to rest of the query. I can use switch but its difficult to handle each and
> every case using switch (as I need to handle switch for so many
> variables)... Is there a way to resolve this via some other way?
>
>
>
> --
> View this message in context:
> http://lucene.472066.n3.nabble.com/How-to-make-fq-optional-tp4077042.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>



-- 
Sincerely yours
Mikhail Khludnev
Principal Engineer,
Grid Dynamics

<http://www.griddynamics.com>
 <mkhlud...@griddynamics.com>

Reply via email to