| |||||||
FRAMES NO FRAMES |
This tag provides support to generate search forms and result lists for a server-side handled Solr search. It takes an (XML or JSON) configuration file or a JSON configuration String and essentially exposes an object with the search results and also the necessary information to suitably build up your search form. It supports facets and highlighting.
If you do not specify a search index explicitly, the tag uses "Solr Offline" and "Solr Online", depending on the current project.
To get detailed information on the configuraiton options, just have a look at an XML content of type jsp-search-form
or look up the JavaDoc of the JSON configuration parser org.opencms.jsp.search.config.parser.CmsJSONSearchConfigurationParser
.
Tag Information | |
Tag Class | org.opencms.jsp.CmsJspTagSearch |
TagExtraInfo Class | None |
Body Content | JSP |
Display Name | None |
Attributes | ||||
Name | Required | Request-time | Type | Description |
var | true | false | org.opencms.jsp.search.result.I_CmsSearchResultWrapper | The name of the variable that exposes an object of type org.opencms.jsp.search.result.I_CmsSearchResultWrapper , which gives you access to the search results and to a search form controller. |
configFile | false | true | java.lang.Object | Value specifying the search form configuration file (either a JSON file or an XML content of type jsp-search-form . You can provide path, structure id or resource object to identify the file. |
fileFormat | false | false | java.lang.String | The format of the configuration file. Valid values are "xml" (default) and "json". |
configString | false | true | java.lang.String | Instead of a configuration file, the JSON config can be directly given as String. |
addContentInfo | false | true | java.lang.Boolean | The tag allows for detection of changes on resources collected by the search tag (editing, creation, deletion). If This feature makes only sense if you use the tag to display (editable) lists of contents. By default, at most (the first) 200 list items are checked for changes. The default can be altered using the attribute false . Hint:The attribute is ignored if |
contentInfoMaxItems | false | true | java.lang.Integer | Enables detection of changed resources as described for addContentInfo . Additionally, sets the maximal number of investigated resources to the provided value. |
Variables | ||||
Name | Type | Declare | Scope | Description |
From attribute 'var' | org.opencms.jsp.search.result.I_CmsSearchResultWrapper | true | NESTED | No Description |
| |||||||
FRAMES NO FRAMES |