I don't understand why you would want to show Sweden if it isn't in the
index, what will your UI do if the user selects Sweden?

However, one way to handle this would be to make a second document type.
Have a field called type or some such, and make the new document type be
'dummy' or 'system' or something like that. You can put documents in here
with fields for any pick-lists you want to facet on and include all possible
values from your database.

Do your facets on either just this doc, or all docs, either way should work.
However on your search queries always include   fq=-type:system
basically exclude all documents of type system from all your searches. 
Messy, but should do what you want.
-- 
View this message in context: 
http://lucene.472066.n3.nabble.com/Missing-facet-values-for-zero-counts-tp1602276p1603893.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to