lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "sivaganesh (Created) (JIRA)" <>
Subject [jira] [Created] (SOLR-2908) To push the terms.limit parameter from the master core to all the shard cores.
Date Sat, 19 Nov 2011 09:16:51 GMT
To push the terms.limit parameter from the master core to all the shard cores.

                 Key: SOLR-2908
             Project: Solr
          Issue Type: Improvement
          Components: SearchComponents - other
    Affects Versions: 1.4.1
         Environment: Linux server. 64 bit processor and 16GB Ram.
            Reporter: sivaganesh
            Priority: Critical
             Fix For: 1.4.1

When we pass the terms.limit parameter to the master (which has many shard cores), it's not
getting pushed down to the individual cores. Instead the default value of -1 is assigned to
Terms.limit parameter is assigned in the underlying shard cores. The issue being the time
taken by the Master core to return the required limit of terms is higher when we are having
more number of underlying shard cores. This affects the performances of the auto suggest feature.

Can thought we can have a parameter to explicitly override the -1 being set to Terms.limit
in shards core.

We saw the source code( and concluded that the same. Please help us in
pushing the terms.limit parameter to shard cores. 

PFB code snippet.

private ShardRequest createShardQuery(SolrParams params) {
    ShardRequest sreq = new ShardRequest();
    sreq.purpose = ShardRequest.PURPOSE_GET_TERMS;

    // base shard request on original parameters
    sreq.params = new ModifiableSolrParams(params);

    // remove any limits for shards, we want them to return all possible
    // responses
    // we want this so we can calculate the correct counts
    // dont sort by count to avoid that unnecessary overhead on the shards
    sreq.params.set(TermsParams.TERMS_LIMIT, -1);
    sreq.params.set(TermsParams.TERMS_SORT, TermsParams.TERMS_SORT_INDEX);

    return sreq;

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message