Class KeywordSearchFacet<E>

  • Type Parameters:
    E - This is generic type for items variable. Currenly it used as a list FacetField.Count in solr.

    public class KeywordSearchFacet<E>
    extends java.lang.Object
    container for one faceting field, the current faceting value and the list of possible items
    Author:
    nils, arunans23
    • Constructor Summary

      Constructors 
      Constructor Description
      KeywordSearchFacet​(java.lang.String field, java.lang.String name, java.lang.String value, java.util.List<E> items)
      constructor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getField()
      internal field name
      java.util.List<E> getItems()
      list of all values and counts
      java.lang.String getName()
      user-friendly name
      java.lang.String getValue()
      selected value
      • Methods inherited from class java.lang.Object

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

      • KeywordSearchFacet

        public KeywordSearchFacet​(java.lang.String field,
                                  java.lang.String name,
                                  java.lang.String value,
                                  java.util.List<E> items)
        constructor
        Parameters:
        field - name of the field
        name - name that is displayed to user
        value - current value selected by user (or null)
        items - list of possible values and their counts as BrowseFacets
    • Method Detail

      • getField

        public java.lang.String getField()
        internal field name
        Returns:
        field
      • getName

        public java.lang.String getName()
        user-friendly name
        Returns:
        name
      • getValue

        public java.lang.String getValue()
        selected value
        Returns:
        value
      • getItems

        public java.util.List<E> getItems()
        list of all values and counts
        Returns:
        items