add get/set for luke 'count' field

git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@654915 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Ryan McKinley 2008-05-09 18:49:02 +00:00
parent 291d18433e
commit 0a58ceee76
1 changed files with 19 additions and 0 deletions

View File

@ -62,6 +62,11 @@ public class LukeRequest extends SolrRequest
}
fields.add( f );
}
public void setFields( List<String> f )
{
fields = f;
}
//---------------------------------------------------------------------------------
//---------------------------------------------------------------------------------
@ -74,6 +79,20 @@ public class LukeRequest extends SolrRequest
this.showSchema = showSchema;
}
public int getCount() {
return count;
}
/**
* 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;
}
//---------------------------------------------------------------------------------
//---------------------------------------------------------------------------------
@Override
public Collection<ContentStream> getContentStreams() {
return null;