Class FacetQueryView

java.lang.Object
org.codelibs.fess.entity.FacetQueryView

public class FacetQueryView extends Object
View class for managing facet query configurations and their display. This class handles the setup and organization of query facets for the search interface, including automatic generation of file type facets and custom query mappings.
  • Field Details

    • title

      protected String title
      Title for this facet query view
    • queryMap

      protected Map<String,String> queryMap
      Map of display keys to their corresponding query strings
  • Constructor Details

    • FacetQueryView

      public FacetQueryView()
      Default constructor for FacetQueryView.
  • Method Details

    • init

      @PostConstruct public void init()
      Initializes the facet query view with default file type queries. This method is called after dependency injection to set up file type facets and register all queries with the FacetInfo component.
    • getTitle

      public String getTitle()
      Gets the title for this facet query view.
      Returns:
      the title string
    • setTitle

      public void setTitle(String title)
      Sets the title for this facet query view.
      Parameters:
      title - the title to set
    • getQueryMap

      public Map<String,String> getQueryMap()
      Gets the map of display keys to query strings.
      Returns:
      the query map
    • addQuery

      public void addQuery(String key, String query)
      Adds a query to the query map with the specified display key.
      Parameters:
      key - the display key for the query
      query - the query string to add
    • toString

      public String toString()
      Returns a string representation of this FacetQueryView object. Includes the title and query map for debugging purposes.
      Overrides:
      toString in class Object
      Returns:
      string representation of this FacetQueryView instance