: I am trying to do facet search on 3 fields (all multivalued fields) in one
: query. field1 has 2 million distinct values, field2 has 1.5 million distinct
: values, field3 has 50,000 distinct values.
: 
: I already set the filterCache to 3,000,000, But the searching speed is still

making your filterCache bigger by some arbitrary amount won't magicly make 
facet searching on multivalued fields faster.   Making your filterCache 
big enough that all of the filters generated by multi-valued field 
faceting can be cached will help.

   3000000 < 2000000 + 1500000 + 50000

...so all you've really done is use up a lot of ram, because you've 
esentially garunteed solr will never get a cache hit as it iterates 
through all the facet terms because of the LRU caching.  (in fact: you'll 
probably have even noticed your queries slow down with a cache size that 
big because of the added garbage collection)

: Is there anyway to optimize the faceted search?  Every help is appreciated.
: Thanks in advanced.

as mentioned, a lot of optimizations have already been made in the trunk.  
you can also improve things by reducing the number of unique values in 
those facet fields (stop words perhaps?) or by making your filterCache 
big enough that you don't see any evictions on the stats page when issuing 
multiple queries.



-Hoss

Reply via email to