Class AbstractSolrConverter<T>

    • Constructor Detail

      • AbstractSolrConverter

        public AbstractSolrConverter()
    • Method Detail

      • convert

        public T convert​(SolrResult source)
        Description copied from interface: Converter
        Converts the source object, creating a new instance of the destination type
        Specified by:
        convert in interface Converter<SolrResult,​T>
        Specified by:
        convert in interface org.springframework.core.convert.converter.Converter<SolrResult,​T>
        Parameters:
        source - the source object
        Returns:
        the converted object
      • createDataObject

        protected abstract T createDataObject()
        Returns empty template instance for the conversion target
      • getValue

        protected <TYPE> TYPE getValue​(SolrResult solrResult,
                                       java.lang.String propertyName)
        Returns value of the indexed property from the SOLR search result by (not translated) name .
        Parameters:
        solrResult - SolrResult
        propertyName - - non-translated property name
      • setFieldNameTranslator

        public void setFieldNameTranslator​(FieldNameTranslator fieldNameTranslator)