: I don't have all my facets values used by my documents, but I would like to
: index theses facets values even if they returned 0 documents.

field faceting builds the list of constraints based on the indexed values 
found in the field -- if you don't index it, it doesn't know about it.

if you want to have field facet constraints returned even though they 
aren't in any "real" docs, you need to index at least one "fake" doc 
containing all ofthose values ... then just make sure you exclude that doc 
at query time using an appended "fq" (you could do it by id, or some 
special field, whatever is easiest for you).  

as long as you use "facet.mincount=0" the values will still be retunred as 
constraints even if no documents in your results match them


-Hoss

Reply via email to