[[reference-shared-types-search_application]]

////////
===========================================================================================================================
||                                                                                                                       ||
||                                                                                                                       ||
||                                                                                                                       ||
||        ██████╗ ███████╗ █████╗ ██████╗ ███╗   ███╗███████╗                                                            ||
||        ██╔══██╗██╔════╝██╔══██╗██╔══██╗████╗ ████║██╔════╝                                                            ||
||        ██████╔╝█████╗  ███████║██║  ██║██╔████╔██║█████╗                                                              ||
||        ██╔══██╗██╔══╝  ██╔══██║██║  ██║██║╚██╔╝██║██╔══╝                                                              ||
||        ██║  ██║███████╗██║  ██║██████╔╝██║ ╚═╝ ██║███████╗                                                            ||
||        ╚═╝  ╚═╝╚══════╝╚═╝  ╚═╝╚═════╝ ╚═╝     ╚═╝╚══════╝                                                            ||
||                                                                                                                       ||
||                                                                                                                       ||
||    This file is autogenerated, DO NOT send pull requests that changes this file directly.                             ||
||    You should update the script that does the generation, which can be found in:                                      ||
||    https://github.com/elastic/elastic-client-generator-js                                                             ||
||                                                                                                                       ||
||    You can run the script with the following command:                                                                 ||
||       npm run elasticsearch -- --version <version>                                                                    ||
||                                                                                                                       ||
||                                                                                                                       ||
||                                                                                                                       ||
===========================================================================================================================
////////



== Shared SearchApplication types


[discrete]
[[SearchApplicationAnalyticsCollection]]
=== SearchApplicationAnalyticsCollection

[pass]
++++
<pre>
++++
interface SearchApplicationAnalyticsCollection {
  pass:[/**] @property event_data_stream Data stream for the collection. */
  event_data_stream: <<SearchApplicationEventDataStream>>
}
[pass]
++++
</pre>
++++

[discrete]
[[SearchApplicationEventDataStream]]
=== SearchApplicationEventDataStream

[pass]
++++
<pre>
++++
interface SearchApplicationEventDataStream {
  name: <<IndexName>>
}
[pass]
++++
</pre>
++++

[discrete]
[[SearchApplicationSearchApplication]]
=== SearchApplicationSearchApplication

[pass]
++++
<pre>
++++
interface SearchApplicationSearchApplication {
  pass:[/**] @property name Search Application name. */
  name: <<Name>>
  pass:[/**] @property indices <<Indices>> that are part of the Search Application. */
  indices: <<IndexName>>[]
  pass:[/**] @property updated_at_millis Last time the Search Application was updated. */
  updated_at_millis: <<EpochTime>><<<UnitMillis>>>
  pass:[/**] @property analytics_collection_name Analytics collection associated to the Search Application. */
  analytics_collection_name?: <<Name>>
  pass:[/**] @property template Search template to use on search operations. */
  template?: <<SearchApplicationSearchApplicationTemplate>>
}
[pass]
++++
</pre>
++++

[discrete]
[[SearchApplicationSearchApplicationTemplate]]
=== SearchApplicationSearchApplicationTemplate

[pass]
++++
<pre>
++++
interface SearchApplicationSearchApplicationTemplate {
  pass:[/**] @property script The associated mustache template. */
  script: <<Script>> | string
}
[pass]
++++
</pre>
++++
