lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From billnb...@gmail.com
Subject Re: Issue with if() statement
Date Fri, 01 Jan 2016 00:20:17 GMT
Solr 5.3.1

Bill Bell
Sent from mobile


> On Dec 31, 2015, at 4:50 PM, William Bell <billnbell@gmail.com> wrote:
> 
> We are getting weird results with if(exists(a),b,c). We are getting b+c!!
> 
> http://localhost:8983/solr/providersearch/select?q=*:*&wt=json&state=state:%22CO%22&state1=state:%22NY%22&fq=if(exists(query($state1)),{!lucene%20v=$state1},{!lucene%20v=$state})
> 
> I am getting NY and CO!
> 
> I only want $state1, which is NY.
> 
> Any other ways to craft this?
> 
> 
> -- 
> Bill Bell
> billnbell@gmail.com
> cell 720-256-8076

Mime
  • Unnamed multipart/alternative (inline, 7-Bit, 0 bytes)
View raw message