On 31-May-07, at 1:33 AM, Gal Nitzan wrote:

Hi,

We have a small index with about 4 million docs.

On this index we have a field "tags" which is a multiple values field.

Running a facet query on the index with something like:
facet=true&facetField=tags&q=type:video takes about 1 minute.

We have defined a large cache which enables the query to run much faster
(about 1 sec)

<filterCache
 class="solr.LRUCache"
 size="1500000"
 initialSize="600000"
 autowarmCount="300000"/>


However, the cache size brings us to the 2GB limit.

If the cardinality of many of the tags is low, you can use HashSet- based filters (the default size at which a HashSet is used is 3000).

Do you really have 1.5M unique values in that field. Are you analyzing the field (you probably shouldn't be)?

-Mike

Reply via email to