mirror of
https://github.com/apache/lucene.git
synced 2025-02-22 01:56:16 +00:00
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:
parent
291d18433e
commit
0a58ceee76
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user