OpenSearch/rest-api-spec/api
javanna d7e585ca4f REST: Unify query_string parameters parsing
There currently are small differences between search api and count, exists, validate query, explain api when it comes to reading query_string parameters.  `analyze_wildcard`, `lowercase_expanded_terms` and `lenient` are only read by the search api and ignored by all other mentioned apis. Unified code to fix this and make sure it doesn't happen again. Also shared some code when it comes to printing out the query as part of SearchSourceBuilder conversion to ToXContent.

Extended REST spec to include all the supported params (some that were already supported weren't listed), and added REST tests (also some basic tests for count and search_exists which weren't tested at all).

Closes #11057
2015-05-11 11:32:59 +02:00
..
bulk.json [API] changed all the links in json specs to the new site 2015-03-24 17:30:32 +01:00
cat.aliases.json [API] changed all the links in json specs to the new site 2015-03-24 17:30:32 +01:00
cat.allocation.json [API] changed all the links in json specs to the new site 2015-03-24 17:30:32 +01:00
cat.count.json [API] changed all the links in json specs to the new site 2015-03-24 17:30:32 +01:00
cat.fielddata.json [API] changed all the links in json specs to the new site 2015-03-24 17:30:32 +01:00
cat.health.json [API] changed all the links in json specs to the new site 2015-03-24 17:30:32 +01:00
cat.help.json [API] changed all the links in json specs to the new site 2015-03-24 17:30:32 +01:00
cat.indices.json [API] changed all the links in json specs to the new site 2015-03-24 17:30:32 +01:00
cat.master.json [API] changed all the links in json specs to the new site 2015-03-24 17:30:32 +01:00
cat.nodes.json [API] changed all the links in json specs to the new site 2015-03-24 17:30:32 +01:00
cat.pending_tasks.json [API] changed all the links in json specs to the new site 2015-03-24 17:30:32 +01:00
cat.plugins.json [API] changed all the links in json specs to the new site 2015-03-24 17:30:32 +01:00
cat.recovery.json [API] changed all the links in json specs to the new site 2015-03-24 17:30:32 +01:00
cat.segments.json [API] changed all the links in json specs to the new site 2015-03-24 17:30:32 +01:00
cat.shards.json [API] changed all the links in json specs to the new site 2015-03-24 17:30:32 +01:00
cat.thread_pool.json [API] changed all the links in json specs to the new site 2015-03-24 17:30:32 +01:00
clear_scroll.json [API] changed all the links in json specs to the new site 2015-03-24 17:30:32 +01:00
cluster.get_settings.json [API] changed all the links in json specs to the new site 2015-03-24 17:30:32 +01:00
cluster.health.json [API] changed all the links in json specs to the new site 2015-03-24 17:30:32 +01:00
cluster.pending_tasks.json [API] changed all the links in json specs to the new site 2015-03-24 17:30:32 +01:00
cluster.put_settings.json [API] changed all the links in json specs to the new site 2015-03-24 17:30:32 +01:00
cluster.reroute.json [API] changed all the links in json specs to the new site 2015-03-24 17:30:32 +01:00
cluster.state.json Cluster state REST api: routing_nodes as an independent metric option 2015-04-08 15:35:11 +02:00
cluster.stats.json [API] changed all the links in json specs to the new site 2015-03-24 17:30:32 +01:00
count.json REST: Unify query_string parameters parsing 2015-05-11 11:32:59 +02:00
count_percolate.json [API] remove global parameter source from individual APIs 2015-04-29 14:01:47 +02:00
delete.json [API] changed all the links in json specs to the new site 2015-03-24 17:30:32 +01:00
delete_script.json [API] changed all the links in json specs to the new site 2015-03-24 17:30:32 +01:00
delete_template.json [API] changed all the links in json specs to the new site 2015-03-24 17:30:32 +01:00
exists.json [API] changed all the links in json specs to the new site 2015-03-24 17:30:32 +01:00
explain.json [API] remove global parameter source from individual APIs 2015-04-29 14:01:47 +02:00
field_stats.json Added field stats api 2015-04-23 08:52:34 +02:00
get.json [API] changed all the links in json specs to the new site 2015-03-24 17:30:32 +01:00
get_script.json [API] changed all the links in json specs to the new site 2015-03-24 17:30:32 +01:00
get_source.json [API] changed all the links in json specs to the new site 2015-03-24 17:30:32 +01:00
get_template.json [API] changed all the links in json specs to the new site 2015-03-24 17:30:32 +01:00
index.json [API] changed all the links in json specs to the new site 2015-03-24 17:30:32 +01:00
indices.analyze.json [API] remove global parameter source from individual APIs 2015-04-29 14:01:47 +02:00
indices.clear_cache.json Core: Cut over to the Lucene filter cache. 2015-05-04 09:02:15 +02:00
indices.close.json [API] changed all the links in json specs to the new site 2015-03-24 17:30:32 +01:00
indices.create.json [API] changed all the links in json specs to the new site 2015-03-24 17:30:32 +01:00
indices.delete.json [API] changed all the links in json specs to the new site 2015-03-24 17:30:32 +01:00
indices.delete_alias.json [API] changed all the links in json specs to the new site 2015-03-24 17:30:32 +01:00
indices.delete_template.json [API] changed all the links in json specs to the new site 2015-03-24 17:30:32 +01:00
indices.delete_warmer.json [API] changed all the links in json specs to the new site 2015-03-24 17:30:32 +01:00
indices.exists.json [API] changed all the links in json specs to the new site 2015-03-24 17:30:32 +01:00
indices.exists_alias.json [API] changed all the links in json specs to the new site 2015-03-24 17:30:32 +01:00
indices.exists_template.json [API] changed all the links in json specs to the new site 2015-03-24 17:30:32 +01:00
indices.exists_type.json [API] changed all the links in json specs to the new site 2015-03-24 17:30:32 +01:00
indices.flush.json [API] changed all the links in json specs to the new site 2015-03-24 17:30:32 +01:00
indices.get.json [API] changed all the links in json specs to the new site 2015-03-24 17:30:32 +01:00
indices.get_alias.json [API] changed all the links in json specs to the new site 2015-03-24 17:30:32 +01:00
indices.get_aliases.json [API] changed all the links in json specs to the new site 2015-03-24 17:30:32 +01:00
indices.get_field_mapping.json [API] changed all the links in json specs to the new site 2015-03-24 17:30:32 +01:00
indices.get_mapping.json [API] changed all the links in json specs to the new site 2015-03-24 17:30:32 +01:00
indices.get_settings.json [API] changed all the links in json specs to the new site 2015-03-24 17:30:32 +01:00
indices.get_template.json [API] changed all the links in json specs to the new site 2015-03-24 17:30:32 +01:00
indices.get_upgrade.json [API] changed all the links in json specs to the new site 2015-03-24 17:30:32 +01:00
indices.get_warmer.json [API] changed all the links in json specs to the new site 2015-03-24 17:30:32 +01:00
indices.open.json [API] changed all the links in json specs to the new site 2015-03-24 17:30:32 +01:00
indices.optimize.json [API] changed all the links in json specs to the new site 2015-03-24 17:30:32 +01:00
indices.put_alias.json [API] changed all the links in json specs to the new site 2015-03-24 17:30:32 +01:00
indices.put_mapping.json [API] changed all the links in json specs to the new site 2015-03-24 17:30:32 +01:00
indices.put_settings.json [API] changed all the links in json specs to the new site 2015-03-24 17:30:32 +01:00
indices.put_template.json [API] changed all the links in json specs to the new site 2015-03-24 17:30:32 +01:00
indices.put_warmer.json [API] changed all the links in json specs to the new site 2015-03-24 17:30:32 +01:00
indices.recovery.json [API] changed all the links in json specs to the new site 2015-03-24 17:30:32 +01:00
indices.refresh.json [API] changed all the links in json specs to the new site 2015-03-24 17:30:32 +01:00
indices.segments.json [API] changed all the links in json specs to the new site 2015-03-24 17:30:32 +01:00
indices.stats.json [API] changed all the links in json specs to the new site 2015-03-24 17:30:32 +01:00
indices.update_aliases.json [API] changed all the links in json specs to the new site 2015-03-24 17:30:32 +01:00
indices.upgrade.json Core: add only_ancient_segments to upgrade API, so only segments with an old Lucene version are upgraded 2015-04-16 05:24:33 -04:00
indices.validate_query.json REST: Unify query_string parameters parsing 2015-05-11 11:32:59 +02:00
info.json [API] changed all the links in json specs to the new site 2015-03-24 17:30:32 +01:00
mget.json [API] remove global parameter source from individual APIs 2015-04-29 14:01:47 +02:00
mpercolate.json [API] remove global parameter source from individual APIs 2015-04-29 14:01:47 +02:00
msearch.json [API] remove global parameter source from individual APIs 2015-04-29 14:01:47 +02:00
mtermvectors.json [API] remove global parameter source from individual APIs 2015-04-29 14:01:47 +02:00
nodes.hot_threads.json [API] changed all the links in json specs to the new site 2015-03-24 17:30:32 +01:00
nodes.info.json [API] changed all the links in json specs to the new site 2015-03-24 17:30:32 +01:00
nodes.stats.json [API] changed all the links in json specs to the new site 2015-03-24 17:30:32 +01:00
percolate.json [API] remove global parameter source from individual APIs 2015-04-29 14:01:47 +02:00
ping.json [API] changed all the links in json specs to the new site 2015-03-24 17:30:32 +01:00
put_script.json [API] changed all the links in json specs to the new site 2015-03-24 17:30:32 +01:00
put_template.json [API] changed all the links in json specs to the new site 2015-03-24 17:30:32 +01:00
scroll.json [API] remove global parameter source from individual APIs 2015-04-29 14:01:47 +02:00
search.json Merge pull request #10864 from aleph-zero/issues/9606 2015-05-07 12:51:28 -07:00
search_exists.json REST: Unify query_string parameters parsing 2015-05-11 11:32:59 +02:00
search_shards.json [API] changed all the links in json specs to the new site 2015-03-24 17:30:32 +01:00
search_template.json [API] remove global parameter source from individual APIs 2015-04-29 14:01:47 +02:00
snapshot.create.json [API] changed all the links in json specs to the new site 2015-03-24 17:30:32 +01:00
snapshot.create_repository.json [API] changed all the links in json specs to the new site 2015-03-24 17:30:32 +01:00
snapshot.delete.json [API] changed all the links in json specs to the new site 2015-03-24 17:30:32 +01:00
snapshot.delete_repository.json [API] changed all the links in json specs to the new site 2015-03-24 17:30:32 +01:00
snapshot.get.json [API] changed all the links in json specs to the new site 2015-03-24 17:30:32 +01:00
snapshot.get_repository.json [API] changed all the links in json specs to the new site 2015-03-24 17:30:32 +01:00
snapshot.restore.json [API] changed all the links in json specs to the new site 2015-03-24 17:30:32 +01:00
snapshot.status.json [API] changed all the links in json specs to the new site 2015-03-24 17:30:32 +01:00
snapshot.verify_repository.json [API] changed all the links in json specs to the new site 2015-03-24 17:30:32 +01:00
suggest.json [API] remove global parameter source from individual APIs 2015-04-29 14:01:47 +02:00
termvectors.json [API] remove global parameter source from individual APIs 2015-04-29 14:01:47 +02:00
update.json Make sure that the parent option on the update request only is delgated to upsert index request. 2015-03-28 08:53:11 +01:00