redirects.asciidoc 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445
  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 <<setup-service>> or <<setup-service-win>>) or use the `-p`
  8. command line option to <<setup-installation-pid,write the PID to a file>>.
  9. [role="exclude",id="docs-bulk-udp"]
  10. === Bulk UDP API
  11. The Bulk UDP services has been removed. Use the standard <<docs-bulk>> instead.
  12. [role="exclude",id="indices-delete-mapping"]
  13. === Delete Mapping
  14. It is no longer possible to delete the mapping for a type. Instead you should
  15. <<indices-delete-index,delete the index>> and recreate it with the new mappings.
  16. [role="exclude",id="indices-status"]
  17. === Index Status
  18. The index `_status` API has been replaced with the <<indices-stats>> and
  19. <<indices-recovery>> APIs.
  20. [role="exclude",id="mapping-analyzer-field"]
  21. === `_analyzer`
  22. The `_analyzer` field in type mappings is no longer supported and will be
  23. automatically removed from mappings when upgrading to 2.x.
  24. [role="exclude",id="mapping-boost-field"]
  25. === `_boost`
  26. The `_boost` 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-conf-mappings"]
  29. === Config mappings
  30. It is no longer possible to specify mappings in files in the `config`
  31. directory. Instead, mappings should be created using the API with:
  32. * <<indices-create-index>>
  33. * <<indices-put-mapping>>
  34. * <<indices-templates>>
  35. [role="exclude",id="modules-memcached"]
  36. === memcached
  37. The `memcached` transport is no longer supported. Instead use the REST
  38. interface over <<modules-http,HTTP>> or the
  39. https://www.elastic.co/guide/en/elasticsearch/client/java-api/current/index.html[Java API].
  40. [role="exclude",id="modules-thrift"]
  41. === Thrift
  42. The `thrift` transport is no longer supported. Instead use the REST
  43. interface over <<modules-http,HTTP>> or the
  44. https://www.elastic.co/guide/en/elasticsearch/client/java-api/current/index.html[Java API].
  45. // QUERY DSL
  46. [role="exclude",id="query-dsl-queries"]
  47. === Queries
  48. Queries and filters have been merged. Any query clause can now be used as a query
  49. in ``query context'' and as a filter in ``filter context'' (see <<query-dsl>>).
  50. [role="exclude",id="query-dsl-filters"]
  51. === Filters
  52. Queries and filters have been merged. Any query clause can now be used as a query
  53. in ``query context'' and as a filter in ``filter context'' (see <<query-dsl>>).
  54. [role="exclude",id="query-dsl-not-filter"]
  55. === Not Filter
  56. The `not` filter has been replaced by the <<query-dsl-not-query>>. It behaves
  57. as a query in ``query context'' and as a filter in ``filter context'' (see
  58. <<query-dsl>>).
  59. [role="exclude",id="query-dsl-bool-filter"]
  60. === Bool Filter
  61. The `bool` filter has been replaced by the <<query-dsl-bool-query>>. It behaves
  62. as a query in ``query context'' and as a filter in ``filter context'' (see
  63. <<query-dsl>>).
  64. [role="exclude",id="query-dsl-exists-filter"]
  65. === Exists Filter
  66. The `exists` filter has been replaced by the <<query-dsl-exists-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-missing-filter"]
  70. === Missing Filter
  71. The `missing` filter has been replaced by the <<query-dsl-missing-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-geohash-cell-filter"]
  100. === Geohash Cell Filter
  101. The `geohash_cell` filter has been replaced by the <<query-dsl-geohash-cell-query>>.
  102. It behaves as a query in ``query context'' and as a filter in ``filter
  103. context'' (see <<query-dsl>>).
  104. [role="exclude",id="query-dsl-has-child-filter"]
  105. === Has Child Filter
  106. The `has_child` filter has been replaced by the <<query-dsl-has-child-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-has-parent-filter"]
  110. === Has Parent Filter
  111. The `has_parent` filter has been replaced by the <<query-dsl-has-parent-query>>. It behaves
  112. as a query in ``query context'' and as a filter in ``filter context'' (see
  113. <<query-dsl>>).
  114. [role="exclude",id="query-dsl-top-children-query"]
  115. === Top Children Query
  116. The `top_children` query has been removed. Use the <<query-dsl-has-child-query>> instead.
  117. [role="exclude",id="query-dsl-ids-filter"]
  118. === IDs Filter
  119. The `ids` filter has been replaced by the <<query-dsl-ids-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-indices-filter"]
  123. === Indices Filter
  124. The `indices` filter has been replaced by the <<query-dsl-indices-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-match-all-filter"]
  128. === Match All Filter
  129. The `match_all` filter has been replaced by the <<query-dsl-match-all-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-nested-filter"]
  133. === Nested Filter
  134. The `nested` filter has been replaced by the <<query-dsl-nested-query>>. It behaves
  135. as a query in ``query context'' and as a filter in ``filter context'' (see
  136. <<query-dsl>>).
  137. [role="exclude",id="query-dsl-prefix-filter"]
  138. === Prefix Filter
  139. The `prefix` filter has been replaced by the <<query-dsl-prefix-query>>. It behaves
  140. as a query in ``query context'' and as a filter in ``filter context'' (see
  141. <<query-dsl>>).
  142. [role="exclude",id="query-dsl-query-filter"]
  143. === Query Filter
  144. The `query` filter has been removed as queries and filters have been merged (see
  145. <<query-dsl>>).
  146. [role="exclude",id="query-dsl-range-filter"]
  147. === Range Filter
  148. The `range` filter has been replaced by the <<query-dsl-range-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-regexp-filter"]
  152. === Regexp Filter
  153. The `regexp` filter has been replaced by the <<query-dsl-regexp-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-script-filter"]
  157. === Script Filter
  158. The `script` filter has been replaced by the <<query-dsl-script-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-term-filter"]
  162. === Term Filter
  163. The `term` filter has been replaced by the <<query-dsl-term-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-terms-filter"]
  167. === Terms Filter
  168. The `terms` filter has been replaced by the <<query-dsl-terms-query>>. It behaves
  169. as a query in ``query context'' and as a filter in ``filter context'' (see
  170. <<query-dsl>>).
  171. [role="exclude",id="query-dsl-type-filter"]
  172. === Type Filter
  173. The `type` filter has been replaced by the <<query-dsl-type-query>>. It behaves
  174. as a query in ``query context'' and as a filter in ``filter context'' (see
  175. <<query-dsl>>).
  176. [role="exclude",id="query-dsl-flt-query"]
  177. === Fuzzy Like This Query
  178. The `fuzzy_like_this` or `flt` query has been removed. Instead use
  179. the <<query-dsl-match-query-fuzziness,`fuzziness`>> parameter with the
  180. <<query-dsl-match-query,`match` query>> or the <<query-dsl-mlt-query>>.
  181. [role="exclude",id="query-dsl-flt-field-query"]
  182. === Fuzzy Like This Field Query
  183. The `fuzzy_like_this_field` or `flt_field` query has been removed. Instead use
  184. the <<query-dsl-match-query-fuzziness,`fuzziness`>> parameter with the
  185. <<query-dsl-match-query,`match` query>> or the <<query-dsl-mlt-query>>.
  186. [role="exclude",id="search-more-like-this"]
  187. === More Like This API
  188. The More Like This API has been removed. Instead, use the <<query-dsl-mlt-query>>.
  189. // FACETS
  190. [role="exclude",id="search-facets"]
  191. === Facets
  192. Faceted search refers to a way to explore large amounts of data by displaying
  193. summaries about various partitions of the data and later allowing to narrow
  194. the navigation to a specific partition.
  195. In Elasticsearch, `facets` are also the name of a feature that allowed to
  196. compute these summaries. `facets` have been replaced by
  197. <<search-aggregations, aggregations>> in Elasticsearch 1.0, which are a superset
  198. of facets.
  199. [role="exclude",id="search-facets-filter-facet"]
  200. === Filter Facet
  201. Facets have been removed. Use the
  202. <<search-aggregations-bucket-filter-aggregation,`filter` aggregation>> or
  203. <<search-aggregations-bucket-filters-aggregation,`filters` aggregation>> instead.
  204. [role="exclude",id="search-facets-query-facet"]
  205. === Query Facet
  206. Facets have been removed. Use the
  207. <<search-aggregations-bucket-filter-aggregation,`filter` aggregation>> or
  208. <<search-aggregations-bucket-filters-aggregation,`filters` aggregation>> instead.
  209. [role="exclude",id="search-facets-geo-distance-facet"]
  210. === Geo Distance Facet
  211. Facets have been removed. Use the
  212. <<search-aggregations-bucket-geodistance-aggregation,`geo_distance` aggregation>> instead.
  213. [role="exclude",id="search-facets-histogram-facet"]
  214. === Histogram Facet
  215. Facets have been removed. Use the
  216. <<search-aggregations-bucket-histogram-aggregation,`histogram` aggregation>> instead.
  217. [role="exclude",id="search-facets-date-histogram-facet"]
  218. === Date Histogram Facet
  219. Facets have been removed. Use the
  220. <<search-aggregations-bucket-datehistogram-aggregation,`date_histogram` aggregation>> instead.
  221. [role="exclude",id="search-facets-range-facet"]
  222. === Range Facet
  223. Facets have been removed. Use the
  224. <<search-aggregations-bucket-range-aggregation,`range` aggregation>> instead.
  225. [role="exclude",id="search-facets-terms-facet"]
  226. === Terms Facet
  227. Facets have been removed. Use the
  228. <<search-aggregations-bucket-terms-aggregation,`terms` aggregation>> instead.
  229. [role="exclude",id="search-facets-terms-statistical-facet"]
  230. === Terms Stats Facet
  231. Facets have been removed. Use the
  232. <<search-aggregations-bucket-terms-aggregation,`terms` aggregation>>
  233. with the <<search-aggregations-metrics-stats-aggregation,`stats` aggregation>>
  234. or the <<search-aggregations-metrics-extendedstats-aggregation,`extended_stats` aggregation>>
  235. instead.
  236. [role="exclude",id="search-facets-statistical-facet"]
  237. === Statistical Facet
  238. Facets have been removed. Use the
  239. <<search-aggregations-metrics-stats-aggregation,`stats` aggregation>>
  240. or the <<search-aggregations-metrics-extendedstats-aggregation,`extended_stats` aggregation>> instead.
  241. [role="exclude",id="search-facets-migrating-to-aggs"]
  242. === Migrating from facets to aggregations
  243. Facets have been removed. Use <<search-aggregations>> instead.
  244. // CACHES
  245. [role="exclude",id="shard-query-cache"]
  246. === Shard request cache
  247. The shard query cache has been renamed <<shard-request-cache>>.
  248. [role="exclude",id="filter-cache"]
  249. === Query cache
  250. The filter cache has been renamed <<query-cache>>.
  251. [role="exclude",id="query-dsl-filtered-query"]
  252. === Filtered query
  253. The `filtered` query is replaced in favour of the <<query-dsl-bool-query,bool>> query. Instead of
  254. the following:
  255. [source,js]
  256. -------------------------
  257. GET _search
  258. {
  259. "query": {
  260. "filtered": {
  261. "query": {
  262. "match": {
  263. "text": "quick brown fox"
  264. }
  265. },
  266. "filter": {
  267. "term": {
  268. "status": "published"
  269. }
  270. }
  271. }
  272. }
  273. }
  274. -------------------------
  275. move the query and filter to the `must` and `filter` parameters in the `bool`
  276. query:
  277. [source,js]
  278. -------------------------
  279. GET _search
  280. {
  281. "query": {
  282. "bool": {
  283. "must": {
  284. "match": {
  285. "text": "quick brown fox"
  286. }
  287. },
  288. "filter": {
  289. "term": {
  290. "status": "published"
  291. }
  292. }
  293. }
  294. }
  295. }
  296. -------------------------
  297. [role="exclude",id="query-dsl-or-query"]
  298. === Or query
  299. The `or` query is replaced in favour of the <<query-dsl-bool-query,bool>> query.
  300. [role="exclude",id="query-dsl-or-filter"]
  301. === Or filter
  302. The `or` filter is replaced in favour of the <<query-dsl-bool-query,bool>> query.
  303. [role="exclude",id="query-dsl-and-query"]
  304. === And query
  305. The `and` query is replaced in favour of the <<query-dsl-bool-query,bool>> query.
  306. [role="exclude",id="query-dsl-and-filter"]
  307. === And filter
  308. The `and` filter is replaced in favour of the <<query-dsl-bool-query,bool>> query.
  309. [role="exclude",id="query-dsl-limit-query"]
  310. === Limit query
  311. The `limit` query is replaced in favour of the <<search-request-body,terminate_after>>
  312. parameter of search requests.
  313. [role="exclude",id="query-dsl-limit-filter"]
  314. === Limit filter
  315. The `limit` filter is replaced in favour of the <<search-request-body,terminate_after>>
  316. parameter of search requests.