| |||||||
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.CmsJspTagSimpleSearch |
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 | VFS-URI, structure id, or resource object identifying the search form configuration file of type listconfig . |
configString | false | true | java.lang.String | Override settings in the configuration file by using a JSON config 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 |