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` query has been replaced by using a `mustNot` clause in a Boolean query.
  57. [role="exclude",id="query-dsl-bool-filter"]
  58. === Bool Filter
  59. The `bool` filter has been replaced by the <<query-dsl-bool-query>>. It behaves
  60. as a query in ``query context'' and as a filter in ``filter context'' (see
  61. <<query-dsl>>).
  62. [role="exclude",id="query-dsl-exists-filter"]
  63. === Exists Filter
  64. The `exists` filter has been replaced by the <<query-dsl-exists-query>>. It behaves
  65. as a query in ``query context'' and as a filter in ``filter context'' (see
  66. <<query-dsl>>).
  67. [role="exclude",id="query-dsl-geo-bounding-box-filter"]
  68. === Geo Bounding Box Filter
  69. The `geo_bounding_box` filter has been replaced by the <<query-dsl-geo-bounding-box-query>>.
  70. It behaves as a query in ``query context'' and as a filter in ``filter
  71. context'' (see <<query-dsl>>).
  72. [role="exclude",id="query-dsl-geo-distance-filter"]
  73. === Geo Distance Filter
  74. The `geo_distance` filter has been replaced by the <<query-dsl-geo-distance-query>>.
  75. It behaves as a query in ``query context'' and as a filter in ``filter
  76. context'' (see <<query-dsl>>).
  77. [role="exclude",id="query-dsl-geo-distance-range-filter"]
  78. === Geo Distance Range Filter
  79. The `geo_distance_range` filter has been replaced by the <<query-dsl-geo-distance-range-query>>.
  80. It behaves as a query in ``query context'' and as a filter in ``filter
  81. context'' (see <<query-dsl>>).
  82. [role="exclude",id="query-dsl-geo-polygon-filter"]
  83. === Geo Polygon Filter
  84. The `geo_polygon` filter has been replaced by the <<query-dsl-geo-polygon-query>>.
  85. It behaves as a query in ``query context'' and as a filter in ``filter
  86. context'' (see <<query-dsl>>).
  87. [role="exclude",id="query-dsl-geo-shape-filter"]
  88. === Geo Shape Filter
  89. The `geo_shape` filter has been replaced by the <<query-dsl-geo-shape-query>>.
  90. It behaves as a query in ``query context'' and as a filter in ``filter
  91. context'' (see <<query-dsl>>).
  92. [role="exclude",id="query-dsl-geohash-cell-filter"]
  93. === Geohash Cell Filter
  94. The `geohash_cell` filter has been replaced by the <<query-dsl-geohash-cell-query>>.
  95. It behaves as a query in ``query context'' and as a filter in ``filter
  96. context'' (see <<query-dsl>>).
  97. [role="exclude",id="query-dsl-has-child-filter"]
  98. === Has Child Filter
  99. The `has_child` filter has been replaced by the <<query-dsl-has-child-query>>. It behaves
  100. as a query in ``query context'' and as a filter in ``filter context'' (see
  101. <<query-dsl>>).
  102. [role="exclude",id="query-dsl-has-parent-filter"]
  103. === Has Parent Filter
  104. The `has_parent` filter has been replaced by the <<query-dsl-has-parent-query>>. It behaves
  105. as a query in ``query context'' and as a filter in ``filter context'' (see
  106. <<query-dsl>>).
  107. [role="exclude",id="query-dsl-top-children-query"]
  108. === Top Children Query
  109. The `top_children` query has been removed. Use the <<query-dsl-has-child-query>> instead.
  110. [role="exclude",id="query-dsl-ids-filter"]
  111. === IDs Filter
  112. The `ids` filter has been replaced by the <<query-dsl-ids-query>>. It behaves
  113. as a query in ``query context'' and as a filter in ``filter context'' (see
  114. <<query-dsl>>).
  115. [role="exclude",id="query-dsl-indices-filter"]
  116. === Indices Filter
  117. The `indices` filter has been replaced by the <<query-dsl-indices-query>>. It behaves
  118. as a query in ``query context'' and as a filter in ``filter context'' (see
  119. <<query-dsl>>).
  120. [role="exclude",id="query-dsl-match-all-filter"]
  121. === Match All Filter
  122. The `match_all` filter has been replaced by the <<query-dsl-match-all-query>>. It behaves
  123. as a query in ``query context'' and as a filter in ``filter context'' (see
  124. <<query-dsl>>).
  125. [role="exclude",id="query-dsl-nested-filter"]
  126. === Nested Filter
  127. The `nested` filter has been replaced by the <<query-dsl-nested-query>>. It behaves
  128. as a query in ``query context'' and as a filter in ``filter context'' (see
  129. <<query-dsl>>).
  130. [role="exclude",id="query-dsl-prefix-filter"]
  131. === Prefix Filter
  132. The `prefix` filter has been replaced by the <<query-dsl-prefix-query>>. It behaves
  133. as a query in ``query context'' and as a filter in ``filter context'' (see
  134. <<query-dsl>>).
  135. [role="exclude",id="query-dsl-query-filter"]
  136. === Query Filter
  137. The `query` filter has been removed as queries and filters have been merged (see
  138. <<query-dsl>>).
  139. [role="exclude",id="query-dsl-range-filter"]
  140. === Range Filter
  141. The `range` filter has been replaced by the <<query-dsl-range-query>>. It behaves
  142. as a query in ``query context'' and as a filter in ``filter context'' (see
  143. <<query-dsl>>).
  144. [role="exclude",id="query-dsl-regexp-filter"]
  145. === Regexp Filter
  146. The `regexp` filter has been replaced by the <<query-dsl-regexp-query>>. It behaves
  147. as a query in ``query context'' and as a filter in ``filter context'' (see
  148. <<query-dsl>>).
  149. [role="exclude",id="query-dsl-script-filter"]
  150. === Script Filter
  151. The `script` filter has been replaced by the <<query-dsl-script-query>>. It behaves
  152. as a query in ``query context'' and as a filter in ``filter context'' (see
  153. <<query-dsl>>).
  154. [role="exclude",id="query-dsl-term-filter"]
  155. === Term Filter
  156. The `term` filter has been replaced by the <<query-dsl-term-query>>. It behaves
  157. as a query in ``query context'' and as a filter in ``filter context'' (see
  158. <<query-dsl>>).
  159. [role="exclude",id="query-dsl-terms-filter"]
  160. === Terms Filter
  161. The `terms` filter has been replaced by the <<query-dsl-terms-query>>. It behaves
  162. as a query in ``query context'' and as a filter in ``filter context'' (see
  163. <<query-dsl>>).
  164. [role="exclude",id="query-dsl-type-filter"]
  165. === Type Filter
  166. The `type` filter has been replaced by the <<query-dsl-type-query>>. It behaves
  167. as a query in ``query context'' and as a filter in ``filter context'' (see
  168. <<query-dsl>>).
  169. [role="exclude",id="query-dsl-flt-query"]
  170. === Fuzzy Like This Query
  171. The `fuzzy_like_this` or `flt` query has been removed. Instead use
  172. the <<query-dsl-match-query-fuzziness,`fuzziness`>> parameter with the
  173. <<query-dsl-match-query,`match` query>> or the <<query-dsl-mlt-query>>.
  174. [role="exclude",id="query-dsl-flt-field-query"]
  175. === Fuzzy Like This Field Query
  176. The `fuzzy_like_this_field` or `flt_field` query has been removed. Instead use
  177. the <<query-dsl-match-query-fuzziness,`fuzziness`>> parameter with the
  178. <<query-dsl-match-query,`match` query>> or the <<query-dsl-mlt-query>>.
  179. [role="exclude",id="search-more-like-this"]
  180. === More Like This API
  181. The More Like This API has been removed. Instead, use the <<query-dsl-mlt-query>>.
  182. // FACETS
  183. [role="exclude",id="search-facets"]
  184. === Facets
  185. Faceted search refers to a way to explore large amounts of data by displaying
  186. summaries about various partitions of the data and later allowing to narrow
  187. the navigation to a specific partition.
  188. In Elasticsearch, `facets` are also the name of a feature that allowed to
  189. compute these summaries. `facets` have been replaced by
  190. <<search-aggregations, aggregations>> in Elasticsearch 1.0, which are a superset
  191. of facets.
  192. [role="exclude",id="search-facets-filter-facet"]
  193. === Filter Facet
  194. Facets have been removed. Use the
  195. <<search-aggregations-bucket-filter-aggregation,`filter` aggregation>> or
  196. <<search-aggregations-bucket-filters-aggregation,`filters` aggregation>> instead.
  197. [role="exclude",id="search-facets-query-facet"]
  198. === Query Facet
  199. Facets have been removed. Use the
  200. <<search-aggregations-bucket-filter-aggregation,`filter` aggregation>> or
  201. <<search-aggregations-bucket-filters-aggregation,`filters` aggregation>> instead.
  202. [role="exclude",id="search-facets-geo-distance-facet"]
  203. === Geo Distance Facet
  204. Facets have been removed. Use the
  205. <<search-aggregations-bucket-geodistance-aggregation,`geo_distance` aggregation>> instead.
  206. [role="exclude",id="search-facets-histogram-facet"]
  207. === Histogram Facet
  208. Facets have been removed. Use the
  209. <<search-aggregations-bucket-histogram-aggregation,`histogram` aggregation>> instead.
  210. [role="exclude",id="search-facets-date-histogram-facet"]
  211. === Date Histogram Facet
  212. Facets have been removed. Use the
  213. <<search-aggregations-bucket-datehistogram-aggregation,`date_histogram` aggregation>> instead.
  214. [role="exclude",id="search-facets-range-facet"]
  215. === Range Facet
  216. Facets have been removed. Use the
  217. <<search-aggregations-bucket-range-aggregation,`range` aggregation>> instead.
  218. [role="exclude",id="search-facets-terms-facet"]
  219. === Terms Facet
  220. Facets have been removed. Use the
  221. <<search-aggregations-bucket-terms-aggregation,`terms` aggregation>> instead.
  222. [role="exclude",id="search-facets-terms-statistical-facet"]
  223. === Terms Stats Facet
  224. Facets have been removed. Use the
  225. <<search-aggregations-bucket-terms-aggregation,`terms` aggregation>>
  226. with the <<search-aggregations-metrics-stats-aggregation,`stats` aggregation>>
  227. or the <<search-aggregations-metrics-extendedstats-aggregation,`extended_stats` aggregation>>
  228. instead.
  229. [role="exclude",id="search-facets-statistical-facet"]
  230. === Statistical Facet
  231. Facets have been removed. Use the
  232. <<search-aggregations-metrics-stats-aggregation,`stats` aggregation>>
  233. or the <<search-aggregations-metrics-extendedstats-aggregation,`extended_stats` aggregation>> instead.
  234. [role="exclude",id="search-facets-migrating-to-aggs"]
  235. === Migrating from facets to aggregations
  236. Facets have been removed. Use <<search-aggregations>> instead.
  237. // CACHES
  238. [role="exclude",id="shard-query-cache"]
  239. === Shard request cache
  240. The shard query cache has been renamed <<shard-request-cache>>.
  241. [role="exclude",id="filter-cache"]
  242. === Query cache
  243. The filter cache has been renamed <<query-cache>>.
  244. [role="exclude",id="query-dsl-filtered-query"]
  245. === Filtered query
  246. The `filtered` query is replaced by the <<query-dsl-bool-query,bool>> query. Instead of
  247. the following:
  248. [source,js]
  249. -------------------------
  250. GET _search
  251. {
  252. "query": {
  253. "filtered": {
  254. "query": {
  255. "match": {
  256. "text": "quick brown fox"
  257. }
  258. },
  259. "filter": {
  260. "term": {
  261. "status": "published"
  262. }
  263. }
  264. }
  265. }
  266. }
  267. -------------------------
  268. move the query and filter to the `must` and `filter` parameters in the `bool`
  269. query:
  270. [source,js]
  271. -------------------------
  272. GET _search
  273. {
  274. "query": {
  275. "bool": {
  276. "must": {
  277. "match": {
  278. "text": "quick brown fox"
  279. }
  280. },
  281. "filter": {
  282. "term": {
  283. "status": "published"
  284. }
  285. }
  286. }
  287. }
  288. }
  289. -------------------------
  290. [role="exclude",id="query-dsl-or-query"]
  291. === Or query
  292. The `or` query is replaced in favour of the <<query-dsl-bool-query,bool>> query.
  293. [role="exclude",id="query-dsl-or-filter"]
  294. === Or filter
  295. The `or` filter is replaced in favour of the <<query-dsl-bool-query,bool>> query.
  296. [role="exclude",id="query-dsl-and-query"]
  297. === And query
  298. The `and` query is replaced in favour of the <<query-dsl-bool-query,bool>> query.
  299. [role="exclude",id="query-dsl-and-filter"]
  300. === And filter
  301. The `and` filter is replaced in favour of the <<query-dsl-bool-query,bool>> query.
  302. [role="exclude",id="query-dsl-limit-query"]
  303. === Limit query
  304. The `limit` query is replaced in favour of the <<search-request-body,terminate_after>>
  305. parameter of search requests.
  306. [role="exclude",id="query-dsl-limit-filter"]
  307. === Limit filter
  308. The `limit` filter is replaced in favour of the <<search-request-body,terminate_after>>
  309. parameter of search requests.
  310. [role="exclude",id="query-dsl-not-query"]
  311. === Not query
  312. The `not` query has been replaced by using a `mustNot` clause in a Boolean query.
  313. [role="exclude",id="mapping-nested-type"]
  314. === Nested type
  315. The docs for the `nested` field datatype have moved to <<nested>>.