How to get default result?

2011-06-06 Thread richardr
Dear list,

i got a question regarding my address search:
I am searching for address data. If there is one address field not definied
(in this case the housenumber) for the specific query (e.g. city = a, street
= b, housenumber=14), I am getting no result. For every street there exists
at least one housenumber (=0).

Is it possible to get this default value (housenumber 0) as a result, if the
user is searching for the housenumber 14, which does not exist in our model?

Thanks in advance,
Richard

--
View this message in context: 
http://lucene.472066.n3.nabble.com/How-to-get-default-result-tp3030665p3030665.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: How to get default result?

2011-06-15 Thread richardr
Tomás, thanks for answer. It was very helpful!
We are using your first option now with a workaround. :)

But initially we thought not to modify the user's request. So if the user
requests the housenumber=14, we do not want to parse the request and add an
"OR 0". If there is no housenumber=14 solr should response with the defined
default value.
Does someone know if there is a way to do this?

Thanks,
Richard




--
View this message in context: 
http://lucene.472066.n3.nabble.com/How-to-get-default-result-tp3030665p3067019.html
Sent from the Solr - User mailing list archive at Nabble.com.