Class Group
java.lang.Object
org.apache.solr.client.solrj.response.Group
- All Implemented Interfaces:
Serializable
Represents a group. A group contains a common group value that all documents inside the group
share and documents that belong to this group.
A group value can be a field value, function result or a query string depending on the GroupCommand. In case of a field value or a function result the value is always an indexed
value.
- Since:
- solr 3.4
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the common group value that all documents share inside this group.Returns the documents to be displayed that belong to this group.
-
Constructor Details
-
Group
Creates a Group instance.- Parameters:
groupValue- The common group value (indexed value) that all documents share.result- The documents to be displayed that belong to this group
-
-
Method Details
-
getGroupValue
Returns the common group value that all documents share inside this group. This is an indexed value, not a stored value.- Returns:
- the common group value
-
getResult
Returns the documents to be displayed that belong to this group. How many documents are returned depend on thegroup.offsetandgroup.limitparameters.- Returns:
- the documents to be displayed that belong to this group
-