lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Smith <marksmithurb...@yahoo.com>
Subject conditional queries?
Date Tue, 09 Apr 2013 05:15:56 GMT
Hi,

Is it possible to do a conditional query if another query has no results?  For example, say
I want to search against a given field for:

- Search for "car".  If there are results, return them.  
- Else, search for "car*" .  If there are results, return them.  
- Else, search for "car~" .  If there are results, return them.  

Is this possible in one query?  Or would I need to make 3 separate queries by implementing
this logic within my client?

Thanks!
Mark


Mime
View raw message