A Content View Connector defines the who, what and how of search. A better term may be “Data Set” because the data you search and find is based on the configuration of the Content View Connection. More info
ElasticSearch Specific Parameters
- Default Query: (3.1.1+) This is field allows you to add a query, which will become a Wrapper Query, that will be added to all other search parameters made against this connection. For example, if you wish to only ever see content created between specific dates you would use the following:
{ "range": { "simflofy_created": { "gte": "2018-12-22T10:39:00", "lte": "2021-12-26T10:39:00" } } }
Note that the usual {"query":{}} wrapper is not present. Including it will cause an error on search.
- elastic_q: This parameter, added by clicking Add Custom Parameter, allows you to pass in a JSON formatted query to the elastic search server. When using this query method you must replace double quotes with single quote characters. Here is an example query:
{'bool':{'must':[{'match':{'document_type':'accounting'}},{'match':{'account_type':''}}]}} Run your query (with proper double quotes) directly against your elastic index using a rest call to test before adding it to configuration.
Response Buffer Size:
Memory (in bytes) used to process responses from ElasticSearch. This memory is allocated per search, so use caution when raising it. Default value is 150MB, minimum is 25MB, maximum is 250MB.
Search Configuration
Legacy Fields: All other fields in this tab are legacy features used for the Solr Search Connection and will be removed in future releases.
- Collection: The name of the collection to query against. Elasticsearch refers to these and “Indexes”, but for our purposes they are collections.
- Sort Field/Order: Will contain the values in your field list. Allows you to choose which field to sort on and whether to sort ascending or descending.
- Facet Fields: Facet fields are simply occurrence counts for the entered fields. Content type counting is the most common example. Facet fields are required for a number of sidebar widgets.
- Field List: The field values to return in a result set. Similar to the SELECT Field1, Field2 clause in SQL.
- Result Link: Used on the Discovery UI to determine what to do when a user clicks on the link to the document.
- Facet Limit: Maximum number of facet values to return.
- Highlight:Yes if you want contextual highlighting, No otherwise.
- Highlighted Fields: Comma delimited list of fields for highlighting (i.e. content).
- Highlight Field Length: The maximum number of characters to highlight.
- External Links: Setup external links for the search results. The widget is not
Search Security
Only one of these options may be selected at a time
- Filter: The authenticated user’s group id is added to each search request. Used in tandem with the User group index task to only allow specified ids to search indexed content
- Restrict: The restricted users or groups cannot use this connector. Views that use it will not be visible to them, and they will not be able to use it through the Search APIs