Class SolrHighlight


  • public class SolrHighlight
    extends java.lang.Object
    SolrHighlight
    • Constructor Summary

      Constructors 
      Constructor Description
      SolrHighlight​(java.util.Map<java.lang.String,​java.util.List<java.lang.String>> map)
      Create a new instance of SolrHighlight
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Set<java.lang.String> getFieldsNames()
      Returns the fields names
      java.util.Map<java.lang.String,​java.util.List<java.lang.String>> getMap()
      Returns the map
      java.util.List<java.lang.String> getValues​(java.lang.String strFieldName)
      Return the value of the given field name
      void setMap​(java.util.Map<java.lang.String,​java.util.List<java.lang.String>> map)
      Sets the map
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SolrHighlight

        public SolrHighlight​(java.util.Map<java.lang.String,​java.util.List<java.lang.String>> map)
        Create a new instance of SolrHighlight
        Parameters:
        map - the highlights from SolrServer
    • Method Detail

      • getMap

        public java.util.Map<java.lang.String,​java.util.List<java.lang.String>> getMap()
        Returns the map
        Returns:
        the map
      • setMap

        public void setMap​(java.util.Map<java.lang.String,​java.util.List<java.lang.String>> map)
        Sets the map
        Parameters:
        map - the map
      • getFieldsNames

        public java.util.Set<java.lang.String> getFieldsNames()
        Returns the fields names
        Returns:
        the fields names
      • getValues

        public java.util.List<java.lang.String> getValues​(java.lang.String strFieldName)
        Return the value of the given field name
        Parameters:
        strFieldName - the field name
        Returns:
        the value of the given field name