Auto-tools/Projects/OrangeFactor/ElasticSearch: Difference between revisions

m
Edmorley moved page Auto-tools/Projects/WarOnOrange/ElasticSearch to Auto-tools/Projects/OrangeFactor/ElasticSearch: Renaming to the actual name of the webapp
m (Edmorley moved page Auto-tools/Projects/WarOnOrange/ElasticSearch to Auto-tools/Projects/OrangeFactor/ElasticSearch: Renaming to the actual name of the webapp)
 
(3 intermediate revisions by one other user not shown)
Line 1: Line 1:
The data for bugs and logs is stored in ElasticSearch.
The data for bugs and logs is stored in ElasticSearch.
== Documentation ==
The ElasticSearch query language is described at [http://www.elasticsearch.com/docs/elasticsearch/rest_api/query_dsl/]. 


== Bug Data ==
== Bug Data ==
Line 73: Line 77:
=== Getting a count for a query ===
=== Getting a count for a query ===


To get a count of items that will be returned by a query, you issue the query to a url that has _count in place of _search, and omits the "query" element which wraps the query (the query is implied for _count).
To get a count of items that will be returned by a query, you issue the query to a url that has <code>_count</code> in place of <code>_search</code>, and omits the "query" element which wraps the query (the "query" is implied for <code>_count</code>).


For example, the query to retrieve the first 10 records for all the bugs in mozilla-central looks like this:
For example, the query to retrieve the first 10 records for all the bugs in mozilla-central looks like this:
canmove, Confirmed users
1,126

edits