Module org.elasticsearch.server
Package org.elasticsearch.action.search
Record Class SearchPhaseController.SortedTopDocs
java.lang.Object
java.lang.Record
org.elasticsearch.action.search.SearchPhaseController.SortedTopDocs
- Enclosing class:
- SearchPhaseController
-
Field Summary
-
Constructor Summary
ConstructorDescriptionSortedTopDocs
(org.apache.lucene.search.ScoreDoc[] scoreDocs, boolean isSortedByField, org.apache.lucene.search.SortField[] sortFields, String collapseField, Object[] collapseValues, int numberOfCompletionsSuggestions) Creates an instance of aSortedTopDocs
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecollapseField
record component.Object[]
Returns the value of thecollapseValues
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.boolean
Returns the value of theisSortedByField
record component.int
Returns the value of thenumberOfCompletionsSuggestions
record component.org.apache.lucene.search.ScoreDoc[]
Returns the value of thescoreDocs
record component.org.apache.lucene.search.SortField[]
Returns the value of thesortFields
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
EMPTY
-
-
Constructor Details
-
SortedTopDocs
public SortedTopDocs(org.apache.lucene.search.ScoreDoc[] scoreDocs, boolean isSortedByField, org.apache.lucene.search.SortField[] sortFields, String collapseField, Object[] collapseValues, int numberOfCompletionsSuggestions) Creates an instance of aSortedTopDocs
record class.- Parameters:
scoreDocs
- the value for thescoreDocs
record componentisSortedByField
- the value for theisSortedByField
record componentsortFields
- the value for thesortFields
record componentcollapseField
- the value for thecollapseField
record componentcollapseValues
- the value for thecollapseValues
record componentnumberOfCompletionsSuggestions
- the value for thenumberOfCompletionsSuggestions
record component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
scoreDocs
public org.apache.lucene.search.ScoreDoc[] scoreDocs()Returns the value of thescoreDocs
record component.- Returns:
- the value of the
scoreDocs
record component
-
isSortedByField
public boolean isSortedByField()Returns the value of theisSortedByField
record component.- Returns:
- the value of the
isSortedByField
record component
-
sortFields
public org.apache.lucene.search.SortField[] sortFields()Returns the value of thesortFields
record component.- Returns:
- the value of the
sortFields
record component
-
collapseField
Returns the value of thecollapseField
record component.- Returns:
- the value of the
collapseField
record component
-
collapseValues
Returns the value of thecollapseValues
record component.- Returns:
- the value of the
collapseValues
record component
-
numberOfCompletionsSuggestions
public int numberOfCompletionsSuggestions()Returns the value of thenumberOfCompletionsSuggestions
record component.- Returns:
- the value of the
numberOfCompletionsSuggestions
record component
-