redirects.asciidoc 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500
  1. ["appendix",role="exclude",id="redirects"]
  2. = Deleted pages
  3. The following pages have moved or been deleted.
  4. [role="exclude",id="cluster-nodes-shutdown"]
  5. === Nodes shutdown
  6. The `_shutdown` API has been removed. Instead, setup Elasticsearch to run as
  7. a service (see <<rpm>>, <<deb>>, or <<windows>>) or use the `-p`
  8. command line option to <<setup-installation-daemon,write the PID to a file>>.
  9. [role="exclude",id="indices-upgrade"]
  10. === Upgrade API
  11. The `_upgrade` API is no longer useful and will be removed. Instead, see
  12. <<reindex-upgrade>>.
  13. [role="exclude",id="docs-bulk-udp"]
  14. === Bulk UDP API
  15. The Bulk UDP services has been removed. Use the standard <<docs-bulk>> instead.
  16. [role="exclude",id="indices-delete-mapping"]
  17. === Delete Mapping
  18. It is no longer possible to delete the mapping for a type. Instead you should
  19. <<indices-delete-index,delete the index>> and recreate it with the new mappings.
  20. [role="exclude",id="indices-status"]
  21. === Index Status
  22. The index `_status` API has been replaced with the <<indices-stats>> and
  23. <<indices-recovery>> APIs.
  24. [role="exclude",id="mapping-analyzer-field"]
  25. === `_analyzer`
  26. The `_analyzer` field in type mappings is no longer supported and will be
  27. automatically removed from mappings when upgrading to 2.x.
  28. [role="exclude",id="mapping-boost-field"]
  29. === `_boost`
  30. The `_boost` field in type mappings is no longer supported and will be
  31. automatically removed from mappings when upgrading to 2.x.
  32. [role="exclude",id="mapping-conf-mappings"]
  33. === Config mappings
  34. It is no longer possible to specify mappings in files in the `config`
  35. directory. Instead, mappings should be created using the API with:
  36. * <<indices-create-index>>
  37. * <<indices-put-mapping>>
  38. * <<indices-templates>>
  39. [role="exclude",id="mapping-parent-field"]
  40. === `_parent` field
  41. The `_parent` field has been removed in favour of the <<parent-join,`join` field>>.
  42. [role="exclude",id="modules-memcached"]
  43. === memcached
  44. The `memcached` transport is no longer supported. Instead use the REST
  45. interface over <<modules-http,HTTP>> or the
  46. {javaclient}/index.html[Java API].
  47. [role="exclude",id="modules-thrift"]
  48. === Thrift
  49. The `thrift` transport is no longer supported. Instead use the REST
  50. interface over <<modules-http,HTTP>> or the
  51. {javaclient}/index.html[Java API].
  52. // QUERY DSL
  53. [role="exclude",id="query-dsl-queries"]
  54. === Queries
  55. Queries and filters have been merged. Any query clause can now be used as a query
  56. in ``query context'' and as a filter in ``filter context'' (see <<query-dsl>>).
  57. [role="exclude",id="query-dsl-filters"]
  58. === Filters
  59. Queries and filters have been merged. Any query clause can now be used as a query
  60. in ``query context'' and as a filter in ``filter context'' (see <<query-dsl>>).
  61. [role="exclude",id="query-dsl-not-filter"]
  62. === Not Filter
  63. The `not` query has been replaced by using a `must_not` clause in a `bool` query (see <<query-dsl-bool-query>>).
  64. [role="exclude",id="query-dsl-bool-filter"]
  65. === Bool Filter
  66. The `bool` filter has been replaced by the <<query-dsl-bool-query>>. It behaves
  67. as a query in ``query context'' and as a filter in ``filter context'' (see
  68. <<query-dsl>>).
  69. [role="exclude",id="query-dsl-exists-filter"]
  70. === Exists Filter
  71. The `exists` filter has been replaced by the <<query-dsl-exists-query>>. It behaves
  72. as a query in ``query context'' and as a filter in ``filter context'' (see
  73. <<query-dsl>>).
  74. [role="exclude",id="query-dsl-geo-bounding-box-filter"]
  75. === Geo Bounding Box Filter
  76. The `geo_bounding_box` filter has been replaced by the <<query-dsl-geo-bounding-box-query>>.
  77. It behaves as a query in ``query context'' and as a filter in ``filter
  78. context'' (see <<query-dsl>>).
  79. [role="exclude",id="query-dsl-geo-distance-filter"]
  80. === Geo Distance Filter
  81. The `geo_distance` filter has been replaced by the <<query-dsl-geo-distance-query>>.
  82. It behaves as a query in ``query context'' and as a filter in ``filter
  83. context'' (see <<query-dsl>>).
  84. [role="exclude",id="query-dsl-geo-distance-range-filter"]
  85. === Geo Distance Range Filter
  86. The `geo_distance_range` filter has been replaced by the <<query-dsl-geo-distance-range-query>>.
  87. It behaves as a query in ``query context'' and as a filter in ``filter
  88. context'' (see <<query-dsl>>).
  89. [role="exclude",id="query-dsl-geo-polygon-filter"]
  90. === Geo Polygon Filter
  91. The `geo_polygon` filter has been replaced by the <<query-dsl-geo-polygon-query>>.
  92. It behaves as a query in ``query context'' and as a filter in ``filter
  93. context'' (see <<query-dsl>>).
  94. [role="exclude",id="query-dsl-geo-shape-filter"]
  95. === Geo Shape Filter
  96. The `geo_shape` filter has been replaced by the <<query-dsl-geo-shape-query>>.
  97. It behaves as a query in ``query context'' and as a filter in ``filter
  98. context'' (see <<query-dsl>>).
  99. [role="exclude",id="query-dsl-has-child-filter"]
  100. === Has Child Filter
  101. The `has_child` filter has been replaced by the <<query-dsl-has-child-query>>. It behaves
  102. as a query in ``query context'' and as a filter in ``filter context'' (see
  103. <<query-dsl>>).
  104. [role="exclude",id="query-dsl-has-parent-filter"]
  105. === Has Parent Filter
  106. The `has_parent` filter has been replaced by the <<query-dsl-has-parent-query>>. It behaves
  107. as a query in ``query context'' and as a filter in ``filter context'' (see
  108. <<query-dsl>>).
  109. [role="exclude",id="query-dsl-top-children-query"]
  110. === Top Children Query
  111. The `top_children` query has been removed. Use the <<query-dsl-has-child-query>> instead.
  112. [role="exclude",id="query-dsl-ids-filter"]
  113. === IDs Filter
  114. The `ids` filter has been replaced by the <<query-dsl-ids-query>>. It behaves
  115. as a query in ``query context'' and as a filter in ``filter context'' (see
  116. <<query-dsl>>).
  117. [role="exclude",id="query-dsl-match-all-filter"]
  118. === Match All Filter
  119. The `match_all` filter has been replaced by the <<query-dsl-match-all-query>>. It behaves
  120. as a query in ``query context'' and as a filter in ``filter context'' (see
  121. <<query-dsl>>).
  122. [role="exclude",id="query-dsl-nested-filter"]
  123. === Nested Filter
  124. The `nested` filter has been replaced by the <<query-dsl-nested-query>>. It behaves
  125. as a query in ``query context'' and as a filter in ``filter context'' (see
  126. <<query-dsl>>).
  127. [role="exclude",id="query-dsl-prefix-filter"]
  128. === Prefix Filter
  129. The `prefix` filter has been replaced by the <<query-dsl-prefix-query>>. It behaves
  130. as a query in ``query context'' and as a filter in ``filter context'' (see
  131. <<query-dsl>>).
  132. [role="exclude",id="query-dsl-query-filter"]
  133. === Query Filter
  134. The `query` filter has been removed as queries and filters have been merged (see
  135. <<query-dsl>>).
  136. [role="exclude",id="query-dsl-range-filter"]
  137. === Range Filter
  138. The `range` filter has been replaced by the <<query-dsl-range-query>>. It behaves
  139. as a query in ``query context'' and as a filter in ``filter context'' (see
  140. <<query-dsl>>).
  141. [role="exclude",id="query-dsl-regexp-filter"]
  142. === Regexp Filter
  143. The `regexp` filter has been replaced by the <<query-dsl-regexp-query>>. It behaves
  144. as a query in ``query context'' and as a filter in ``filter context'' (see
  145. <<query-dsl>>).
  146. [role="exclude",id="query-dsl-script-filter"]
  147. === Script Filter
  148. The `script` filter has been replaced by the <<query-dsl-script-query>>. It behaves
  149. as a query in ``query context'' and as a filter in ``filter context'' (see
  150. <<query-dsl>>).
  151. [role="exclude",id="query-dsl-term-filter"]
  152. === Term Filter
  153. The `term` filter has been replaced by the <<query-dsl-term-query>>. It behaves
  154. as a query in ``query context'' and as a filter in ``filter context'' (see
  155. <<query-dsl>>).
  156. [role="exclude",id="query-dsl-terms-filter"]
  157. === Terms Filter
  158. The `terms` filter has been replaced by the <<query-dsl-terms-query>>. It behaves
  159. as a query in ``query context'' and as a filter in ``filter context'' (see
  160. <<query-dsl>>).
  161. [role="exclude",id="query-dsl-type-filter"]
  162. === Type Filter
  163. The `type` filter has been replaced by the <<query-dsl-type-query>>. It behaves
  164. as a query in ``query context'' and as a filter in ``filter context'' (see
  165. <<query-dsl>>).
  166. [role="exclude",id="query-dsl-flt-query"]
  167. === Fuzzy Like This Query
  168. The `fuzzy_like_this` or `flt` query has been removed. Instead use
  169. the <<query-dsl-match-query-fuzziness,`fuzziness`>> parameter with the
  170. <<query-dsl-match-query,`match` query>> or the <<query-dsl-mlt-query>>.
  171. [role="exclude",id="query-dsl-flt-field-query"]
  172. === Fuzzy Like This Field Query
  173. The `fuzzy_like_this_field` or `flt_field` query has been removed. Instead use
  174. the <<query-dsl-match-query-fuzziness,`fuzziness`>> parameter with the
  175. <<query-dsl-match-query,`match` query>> or the <<query-dsl-mlt-query>>.
  176. [role="exclude",id="query-dsl-geo-distance-range-query"]
  177. === Geo distance range Query
  178. The `geo_distance_range` query has been removed. Instead use the
  179. <<query-dsl-geo-distance-query, Geo Distance Query>> with pagination
  180. or the
  181. <<search-aggregations-bucket-geodistance-aggregation, Geo Distance Aggregation>>
  182. depending on your needs.
  183. [role="exclude",id="query-dsl-geohash-cell-query"]
  184. === Geohash Cell Query
  185. The `geohash_cell` query has been removed. Instead use the
  186. <<query-dsl-geo-bounding-box-query, Geo Bounding Box Query>>.
  187. [role="exclude",id="search-more-like-this"]
  188. === More Like This API
  189. The More Like This API has been removed. Instead, use the <<query-dsl-mlt-query>>.
  190. // FACETS
  191. [role="exclude",id="search-facets"]
  192. === Facets
  193. Faceted search refers to a way to explore large amounts of data by displaying
  194. summaries about various partitions of the data and later allowing to narrow
  195. the navigation to a specific partition.
  196. In Elasticsearch, `facets` are also the name of a feature that allowed to
  197. compute these summaries. `facets` have been replaced by
  198. <<search-aggregations, aggregations>> in Elasticsearch 1.0, which are a superset
  199. of facets.
  200. [role="exclude",id="search-facets-filter-facet"]
  201. === Filter Facet
  202. Facets have been removed. Use the
  203. <<search-aggregations-bucket-filter-aggregation,`filter` aggregation>> or
  204. <<search-aggregations-bucket-filters-aggregation,`filters` aggregation>> instead.
  205. [role="exclude",id="search-facets-query-facet"]
  206. === Query Facet
  207. Facets have been removed. Use the
  208. <<search-aggregations-bucket-filter-aggregation,`filter` aggregation>> or
  209. <<search-aggregations-bucket-filters-aggregation,`filters` aggregation>> instead.
  210. [role="exclude",id="search-facets-geo-distance-facet"]
  211. === Geo Distance Facet
  212. Facets have been removed. Use the
  213. <<search-aggregations-bucket-geodistance-aggregation,`geo_distance` aggregation>> instead.
  214. [role="exclude",id="search-facets-histogram-facet"]
  215. === Histogram Facet
  216. Facets have been removed. Use the
  217. <<search-aggregations-bucket-histogram-aggregation,`histogram` aggregation>> instead.
  218. [role="exclude",id="search-facets-date-histogram-facet"]
  219. === Date Histogram Facet
  220. Facets have been removed. Use the
  221. <<search-aggregations-bucket-datehistogram-aggregation,`date_histogram` aggregation>> instead.
  222. [role="exclude",id="search-facets-range-facet"]
  223. === Range Facet
  224. Facets have been removed. Use the
  225. <<search-aggregations-bucket-range-aggregation,`range` aggregation>> instead.
  226. [role="exclude",id="search-facets-terms-facet"]
  227. === Terms Facet
  228. Facets have been removed. Use the
  229. <<search-aggregations-bucket-terms-aggregation,`terms` aggregation>> instead.
  230. [role="exclude",id="search-facets-terms-statistical-facet"]
  231. === Terms Stats Facet
  232. Facets have been removed. Use the
  233. <<search-aggregations-bucket-terms-aggregation,`terms` aggregation>>
  234. with the <<search-aggregations-metrics-stats-aggregation,`stats` aggregation>>
  235. or the <<search-aggregations-metrics-extendedstats-aggregation,`extended_stats` aggregation>>
  236. instead.
  237. [role="exclude",id="search-facets-statistical-facet"]
  238. === Statistical Facet
  239. Facets have been removed. Use the
  240. <<search-aggregations-metrics-stats-aggregation,`stats` aggregation>>
  241. or the <<search-aggregations-metrics-extendedstats-aggregation,`extended_stats` aggregation>> instead.
  242. [role="exclude",id="search-facets-migrating-to-aggs"]
  243. === Migrating from facets to aggregations
  244. Facets have been removed. Use <<search-aggregations>> instead.
  245. // CACHES
  246. [role="exclude",id="shard-query-cache"]
  247. === Shard request cache
  248. The shard query cache has been renamed <<shard-request-cache>>.
  249. [role="exclude",id="filter-cache"]
  250. === Query cache
  251. The filter cache has been renamed <<query-cache>>.
  252. [role="exclude",id="query-dsl-filtered-query"]
  253. === Filtered query
  254. The `filtered` query is replaced by the <<query-dsl-bool-query,bool>> query. Instead of
  255. the following:
  256. [source,js]
  257. -------------------------
  258. ## INCORRECT - DEPRECATED SYNTAX, DO NOT USE
  259. GET _search
  260. {
  261. "query": {
  262. "filtered": {
  263. "query": {
  264. "match": {
  265. "text": "quick brown fox"
  266. }
  267. },
  268. "filter": {
  269. "term": {
  270. "status": "published"
  271. }
  272. }
  273. }
  274. }
  275. }
  276. -------------------------
  277. // NOTCONSOLE
  278. move the query and filter to the `must` and `filter` parameters in the `bool`
  279. query:
  280. [source,js]
  281. -------------------------
  282. GET _search
  283. {
  284. "query": {
  285. "bool": {
  286. "must": {
  287. "match": {
  288. "text": "quick brown fox"
  289. }
  290. },
  291. "filter": {
  292. "term": {
  293. "status": "published"
  294. }
  295. }
  296. }
  297. }
  298. }
  299. -------------------------
  300. // CONSOLE
  301. [role="exclude",id="query-dsl-or-query"]
  302. === Or query
  303. The `or` query is replaced in favour of the <<query-dsl-bool-query,bool>> query.
  304. [role="exclude",id="query-dsl-or-filter"]
  305. === Or filter
  306. The `or` filter is replaced in favour of the <<query-dsl-bool-query,bool>> query.
  307. [role="exclude",id="query-dsl-and-query"]
  308. === And query
  309. The `and` query is replaced in favour of the <<query-dsl-bool-query,bool>> query.
  310. [role="exclude",id="query-dsl-and-filter"]
  311. === And filter
  312. The `and` filter is replaced in favour of the <<query-dsl-bool-query,bool>> query.
  313. [role="exclude",id="query-dsl-limit-query"]
  314. === Limit query
  315. The `limit` query is replaced in favour of the <<search-request-body,terminate_after>>
  316. parameter of search requests.
  317. [role="exclude",id="query-dsl-limit-filter"]
  318. === Limit filter
  319. The `limit` filter is replaced in favour of the <<search-request-body,terminate_after>>
  320. parameter of search requests.
  321. [role="exclude",id="query-dsl-not-query"]
  322. === Not query
  323. The `not` query has been replaced by using a `mustNot` clause in a Boolean query.
  324. [role="exclude",id="mapping-nested-type"]
  325. === Nested type
  326. The docs for the `nested` field datatype have moved to <<nested>>.
  327. [role="exclude",id="indices-warmers"]
  328. === Warmers
  329. Warmers have been removed. There have been significant improvements to the
  330. index that make warmers not necessary anymore.
  331. [role="exclude",id="index-boost"]
  332. === Index time boosting
  333. The index time boost mapping has been replaced with query time boost (see <<mapping-boost>>).
  334. [role="exclude",id="modules-scripting-native"]
  335. === Native scripting
  336. Native scripts have been replaced with writing custom `ScriptEngine` backends (see <<modules-scripting-engine>>).
  337. [role="exclude",id="modules-advanced-scripting"]
  338. === Advanced scripting
  339. Using `_index` in scripts has been replaced with writing `ScriptEngine` backends (see <<modules-scripting-engine>>).
  340. [role="exclude",id="modules-scripting-painless-syntax"]
  341. === Painless Syntax
  342. See the
  343. {painless}/painless-specification.html[Painless Language Specification]
  344. in the guide to the {painless}/index.html[Painless Scripting Language].
  345. [role="exclude",id="modules-scripting-painless-debugging"]
  346. === Painless Debugging
  347. See {painless}/painless-debugging.html[Painless Debugging] in the
  348. guide to the {painless}/index.html[Painless Scripting Language].
  349. [role="exclude",id="painless-api-reference"]
  350. === Painless API Reference
  351. See the {painless}/painless-api-reference.html[Painless API Reference] in
  352. the guide to the {painless}/index.html[Painless Scripting Language].