Class SearchHit

  • All Implemented Interfaces:
    com.github.davidmoten.odata.client.ODataType

    public class SearchHit
    extends Object
    implements com.github.davidmoten.odata.client.ODataType
    • Field Detail

      • contextPath

        protected com.github.davidmoten.odata.client.ContextPath contextPath
      • unmappedFields

        protected com.github.davidmoten.odata.client.internal.UnmappedFieldsImpl unmappedFields
      • odataType

        protected String odataType
      • contentSource

        protected String contentSource
      • hitId

        protected String hitId
      • resultTemplateId

        protected String resultTemplateId
      • summary

        protected String summary
      • _summary

        protected String _summary
    • Constructor Detail

      • SearchHit

        protected SearchHit()
    • Method Detail

      • odataTypeName

        public String odataTypeName()
        Specified by:
        odataTypeName in interface com.github.davidmoten.odata.client.ODataType
      • withContentSource

        public SearchHit withContentSource​(String contentSource)
      • withResultTemplateId

        public SearchHit withResultTemplateId​(String resultTemplateId)
      • get_id

        public Optional<String> get_id()

        Org.OData.Core.V1.Revisions

        Returns:
        property _id
      • with_id

        public SearchHit with_id​(String _id)
        Returns an immutable copy of this with just the _id field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this.patch() is called (if available)on the returned object only the changed fields are submitted.

        Org.OData.Core.V1.Revisions

        Parameters:
        _id - new value of _id field (as defined in service metadata)
        Returns:
        immutable copy of this with just the _id field changed
      • get_score

        public Optional<Integer> get_score()

        Org.OData.Core.V1.Revisions

        Returns:
        property _score
      • with_score

        public SearchHit with_score​(Integer _score)
        Returns an immutable copy of this with just the _score field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this.patch() is called (if available)on the returned object only the changed fields are submitted.

        Org.OData.Core.V1.Revisions

        Parameters:
        _score - new value of _score field (as defined in service metadata)
        Returns:
        immutable copy of this with just the _score field changed
      • get_summary

        public Optional<String> get_summary()

        Org.OData.Core.V1.Revisions

        Returns:
        property _summary
      • with_summary

        public SearchHit with_summary​(String _summary)
        Returns an immutable copy of this with just the _summary field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this.patch() is called (if available)on the returned object only the changed fields are submitted.

        Org.OData.Core.V1.Revisions

        Parameters:
        _summary - new value of _summary field (as defined in service metadata)
        Returns:
        immutable copy of this with just the _summary field changed
      • getUnmappedFields

        public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
        Specified by:
        getUnmappedFields in interface com.github.davidmoten.odata.client.ODataType
      • postInject

        public void postInject​(boolean addKeysToContextPath)
        Specified by:
        postInject in interface com.github.davidmoten.odata.client.ODataType
      • builder

        public static SearchHit.Builder builder()
        Returns a builder which is used to create a new instance of this class (given that this class is immutable).
        Returns:
        a new Builder for this class