replacing non-existing "count" argument with useful "numTerms" argument

git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@678225 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Ryan McKinley 2008-07-19 21:42:28 +00:00
parent d4532fd381
commit dca260e4b8
1 changed files with 7 additions and 7 deletions

View File

@ -39,7 +39,7 @@ import org.apache.solr.common.util.ContentStream;
public class LukeRequest extends SolrRequest
{
private List<String> fields;
private int count = -1;
private int numTerms = -1;
private boolean showSchema = false;
public LukeRequest()
@ -79,15 +79,15 @@ public class LukeRequest extends SolrRequest
this.showSchema = showSchema;
}
public int getCount() {
return count;
public int getNumTerms() {
return numTerms;
}
/**
* the number of terms to return for a given field. If the number is 0, it will not traverse the terms.
*/
public void setCount(int count) {
this.count = count;
public void setNumTerms(int count) {
this.numTerms = count;
}
//---------------------------------------------------------------------------------
@ -104,8 +104,8 @@ public class LukeRequest extends SolrRequest
if( fields != null && fields.size() > 0 ) {
params.add( CommonParams.FL, fields.toArray( new String[fields.size()] ) );
}
if( count >= 0 ) {
params.add( "count", count+"" );
if( numTerms >= 0 ) {
params.add( "numTerms", numTerms+"" );
}
if (showSchema) {
params.add("show", "schema");