Package org.intermine.api.searchengine
Class KeywordSearchFacet<E>
- java.lang.Object
-
- org.intermine.api.searchengine.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 namejava.util.List<E>
getItems()
list of all values and countsjava.lang.String
getName()
user-friendly namejava.lang.String
getValue()
selected value
-
-
-
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 fieldname
- name that is displayed to uservalue
- 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
-
-