Package org.ametys.cms.search.solr
Record Class SearcherFactory.HighlightDefinition
java.lang.Object
java.lang.Record
org.ametys.cms.search.solr.SearcherFactory.HighlightDefinition
- Record Components:
query- The highlighting querysnippets- The maximum number of fragments to returnfragSize- The size of fragments in characters
- Enclosing class:
SearcherFactory
public static record SearcherFactory.HighlightDefinition(Query query, int snippets, int fragSize)
extends Record
Record representing the highlighting parameters.
-
Constructor Summary
ConstructorsConstructorDescriptionHighlightDefinition(Query query, int snippets, int fragSize) Creates an instance of aHighlightDefinitionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.intfragSize()Returns the value of thefragSizerecord component.final inthashCode()Returns a hash code value for this object.query()Returns the value of thequeryrecord component.intsnippets()Returns the value of thesnippetsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
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
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 '=='. -
query
Returns the value of thequeryrecord component.- Returns:
- the value of the
queryrecord component
-
snippets
Returns the value of thesnippetsrecord component.- Returns:
- the value of the
snippetsrecord component
-
fragSize
Returns the value of thefragSizerecord component.- Returns:
- the value of the
fragSizerecord component
-