Class SolrSortModel

  • All Implemented Interfaces:
    java.io.Serializable

    public class SolrSortModel
    extends ItemModel
    Generated model class for type SolrSort first defined at extension solrfacetsearch.

    Extending SolrSort type with additional attributes.

    See Also:
    Serialized Form
    • Field Detail

      • _TYPECODE

        public static final java.lang.String _TYPECODE
        Generated model type code constant.
        See Also:
        Constant Field Values
      • _SOLRINDEXEDTYPE2SOLRSORTREL

        public static final java.lang.String _SOLRINDEXEDTYPE2SOLRSORTREL
        Generated relation code constant for relation SolrIndexedType2SolrSortRel defining source attribute indexedType in extension solrfacetsearch.
        See Also:
        Constant Field Values
      • CODE

        public static final java.lang.String CODE
        Generated constant - Attribute key of SolrSort.code attribute defined at extension solrfacetsearch.
        See Also:
        Constant Field Values
      • NAME

        public static final java.lang.String NAME
        Generated constant - Attribute key of SolrSort.name attribute defined at extension solrfacetsearch.
        See Also:
        Constant Field Values
      • USEBOOST

        public static final java.lang.String USEBOOST
        Generated constant - Attribute key of SolrSort.useBoost attribute defined at extension solrfacetsearch.
        See Also:
        Constant Field Values
      • INDEXEDTYPEPOS

        public static final java.lang.String INDEXEDTYPEPOS
        Generated constant - Attribute key of SolrSort.indexedTypePOS attribute defined at extension solrfacetsearch.
        See Also:
        Constant Field Values
      • INDEXEDTYPE

        public static final java.lang.String INDEXEDTYPE
        Generated constant - Attribute key of SolrSort.indexedType attribute defined at extension solrfacetsearch.
        See Also:
        Constant Field Values
      • FIELDS

        public static final java.lang.String FIELDS
        Generated constant - Attribute key of SolrSort.fields attribute defined at extension solrfacetsearch.
        See Also:
        Constant Field Values
    • Constructor Detail

      • SolrSortModel

        public SolrSortModel()
        Generated constructor - Default constructor for generic creation.
      • SolrSortModel

        public SolrSortModel​(ItemModelContext ctx)
        Generated constructor - Default constructor for creation with existing context
        Parameters:
        ctx - the model context to be injected, must not be null
      • SolrSortModel

        @Deprecated(since="4.1.1",
                    forRemoval=true)
        public SolrSortModel​(java.lang.String _code,
                             SolrIndexedTypeModel _indexedType)
        Deprecated, for removal: This API element is subject to removal in a future version.
        since 4.1.1 Please use the default constructor without parameters
        Generated constructor - Constructor with all mandatory attributes.
        Parameters:
        _code - initial attribute declared by type SolrSort at extension solrfacetsearch
        _indexedType - initial attribute declared by type SolrSort at extension solrfacetsearch
      • SolrSortModel

        @Deprecated(since="4.1.1",
                    forRemoval=true)
        public SolrSortModel​(java.lang.String _code,
                             SolrIndexedTypeModel _indexedType,
                             ItemModel _owner)
        Deprecated, for removal: This API element is subject to removal in a future version.
        since 4.1.1 Please use the default constructor without parameters
        Generated constructor - for all mandatory and initial attributes.
        Parameters:
        _code - initial attribute declared by type SolrSort at extension solrfacetsearch
        _indexedType - initial attribute declared by type SolrSort at extension solrfacetsearch
        _owner - initial attribute declared by type Item at extension core
    • Method Detail

      • getCode

        @Accessor(qualifier="code",
                  type=GETTER)
        public java.lang.String getCode()
        Generated method - Getter of the SolrSort.code attribute defined at extension solrfacetsearch.
        Returns:
        the code - The unique code used to identify the solr sort.
      • getFields

        @Accessor(qualifier="fields",
                  type=GETTER)
        public java.util.List<SolrSortFieldModel> getFields()
        Generated method - Getter of the SolrSort.fields attribute defined at extension solrfacetsearch. Consider using FlexibleSearchService::searchRelation for pagination support of large result sets.
        Returns:
        the fields
      • getName

        @Accessor(qualifier="name",
                  type=GETTER)
        public java.lang.String getName()
        Generated method - Getter of the SolrSort.name attribute defined at extension solrfacetsearch.
        Returns:
        the name - The display name for this sort.
      • getName

        @Accessor(qualifier="name",
                  type=GETTER)
        public java.lang.String getName​(java.util.Locale loc)
        Generated method - Getter of the SolrSort.name attribute defined at extension solrfacetsearch.
        Parameters:
        loc - the value localization key
        Returns:
        the name - The display name for this sort.
        Throws:
        java.lang.IllegalArgumentException - if localization key cannot be mapped to data language
      • isUseBoost

        @Accessor(qualifier="useBoost",
                  type=GETTER)
        public boolean isUseBoost()
        Generated method - Getter of the SolrSort.useBoost attribute defined at extension solrfacetsearch.
        Returns:
        the useBoost - The property specifies whether a sort should apply SOLR boost rules.
      • setCode

        @Accessor(qualifier="code",
                  type=SETTER)
        public void setCode​(java.lang.String value)
        Generated method - Setter of SolrSort.code attribute defined at extension solrfacetsearch.
        Parameters:
        value - the code - The unique code used to identify the solr sort.
      • setFields

        @Accessor(qualifier="fields",
                  type=SETTER)
        public void setFields​(java.util.List<SolrSortFieldModel> value)
        Generated method - Setter of SolrSort.fields attribute defined at extension solrfacetsearch.
        Parameters:
        value - the fields
      • setIndexedType

        @Accessor(qualifier="indexedType",
                  type=SETTER)
        public void setIndexedType​(SolrIndexedTypeModel value)
        Generated method - Setter of SolrSort.indexedType attribute defined at extension solrfacetsearch.
        Parameters:
        value - the indexedType
      • setName

        @Accessor(qualifier="name",
                  type=SETTER)
        public void setName​(java.lang.String value)
        Generated method - Setter of SolrSort.name attribute defined at extension solrfacetsearch.
        Parameters:
        value - the name - The display name for this sort.
      • setName

        @Accessor(qualifier="name",
                  type=SETTER)
        public void setName​(java.lang.String value,
                            java.util.Locale loc)
        Generated method - Setter of SolrSort.name attribute defined at extension solrfacetsearch.
        Parameters:
        value - the name - The display name for this sort.
        loc - the value localization key
        Throws:
        java.lang.IllegalArgumentException - if localization key cannot be mapped to data language
      • setUseBoost

        @Accessor(qualifier="useBoost",
                  type=SETTER)
        public void setUseBoost​(boolean value)
        Generated method - Setter of SolrSort.useBoost attribute defined at extension solrfacetsearch.
        Parameters:
        value - the useBoost - The property specifies whether a sort should apply SOLR boost rules.