Package org.codelibs.fess.entity
Class FacetQueryView
java.lang.Object
org.codelibs.fess.entity.FacetQueryView
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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a query to the query map with the specified display key.Gets the map of display keys to query strings.getTitle()Gets the title for this facet query view.voidinit()Initializes the facet query view with default file type queries.voidSets the title for this facet query view.toString()Returns a string representation of this FacetQueryView object.
-
Field Details
-
title
Title for this facet query view -
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
Gets the title for this facet query view.- Returns:
- the title string
-
setTitle
Sets the title for this facet query view.- Parameters:
title- the title to set
-
getQueryMap
Gets the map of display keys to query strings.- Returns:
- the query map
-
addQuery
Adds a query to the query map with the specified display key.- Parameters:
key- the display key for the queryquery- the query string to add
-
toString
Returns a string representation of this FacetQueryView object. Includes the title and query map for debugging purposes.
-