Class SolrHighlights

java.lang.Object
fr.paris.lutece.plugins.search.solr.business.SolrHighlights

public class SolrHighlights extends Object
A SolrHighlight is a sample sentence which highlights searched words.
  • Constructor Details

    • SolrHighlights

      public SolrHighlights(Map<String,Map<String,List<String>>> map)
      Creates a new SolrHighlights
      Parameters:
      map - the highlight map from SolrServer.
  • Method Details

    • getMap

      public Map<String,Map<String,List<String>>> getMap()
      Gets the map.
      Returns:
      the map
    • setMap

      public void setMap(Map<String,Map<String,List<String>>> map)
      Sets the map.
      Parameters:
      map - the map.
    • getHighlights

      public SolrHighlight getHighlights(String strId)
      Returns a SolrHighlight matching the searched strId.
      Parameters:
      strId - the searched id
      Returns:
      the SolrHighlight that matches the searched id, otherwise null.