Interface SystemProperty

    • Method Detail

      • getId

        String getId()
        Get the system property ID.
        Returns:
        The property ID.
      • isMultiple

        boolean isMultiple()
        Get the multiple status of the property.
        Returns:
        true if the property can have multiple values, false otherwise.
      • getContentTypeId

        default String getContentTypeId()
        In case of a Content reference field, the content type ID.
        Returns:
        the content type ID.
      • isSearchable

        default boolean isSearchable()
        Get if the property can be searched on (i.e. used in a SearchCriterion).
        Returns:
        true if the property can be searched on, false otherwise.
      • isDisplayable

        default boolean isDisplayable()
        Get if the property can be displayed (i.e. used in a ResultField).
        Returns:
        true if the property can be displayed, false otherwise.
      • isSortable

        default boolean isSortable()
        Get if the property can be sorted on.
        Returns:
        true if the property can be sorted on, false otherwise.
      • isFacetable

        default boolean isFacetable()
        Gets if the property can be facetable
        Returns:
        true if the property can be facetable, false otherwise.
      • getQuery

        Query getQuery​(Object value,
                       Query.Operator operator,
                       String language,
                       Map<String,​Object> contextualParameters)
        Get the Query associated to the given value.
        Parameters:
        value - the user-submitted value for this property.
        operator - In advanced search mode, the operator chosen by the user. null to use the criterion-defined operator (simple search mode).
        language - The current search language.
        contextualParameters - the search contextual parameters.
        Returns:
        The Query associated to the given value.
      • getWidget

        default String getWidget()
        Get the default widget to use when rendering this property as a criterion.
        Returns:
        The default widget to use, or null if no specific widget is necessary.
      • getRenderer

        default String getRenderer()
        Get the renderer.
        Returns:
        The column renderer.
      • getConverter

        default String getConverter()
        Get the property column converter.
        Returns:
        The property column converter.
      • getColumnWidth

        default Integer getColumnWidth()
        Get the column width.
        Returns:
        the default column width, can be null.
      • index

        void index​(Content content,
                   org.apache.solr.common.SolrInputDocument document)
        Index the system property in a solr document.
        Parameters:
        content - The content to index.
        document - The solr document to index into.
      • getJsonValue

        default Object getJsonValue​(Content content,
                                    boolean full)
        Get the jsonified value
        Parameters:
        content - the result content
        full - true to get full value.
        Returns:
        the content field value
      • getSortValue

        default Object getSortValue​(Content content)
        Get the sort value represented by this field in the given result content.
        Parameters:
        content - the result content.
        Returns:
        the content sort value, must be scalar (String, long, double, Date).