)]}'
{"doc/source/searchlightapi.rst":[{"author":{"_account_id":7665,"name":"Travis Tripp","email":"os.travis.tripp@gmail.com","username":"travis.tripp"},"change_message_id":"77fc4c0789b348dab35e3ff1bb7098373d3c8f25","unresolved":false,"context_lines":[{"line_number":587,"context_line":"        \"value_as_string\": \"2016-04-06T12:48:18.000Z\""},{"line_number":588,"context_line":"      }"},{"line_number":589,"context_line":"    }"},{"line_number":590,"context_line":"  }  "},{"line_number":591,"context_line":""},{"line_number":592,"context_line":"Note that for some aggregations ``value_as_string`` may be more useful than"},{"line_number":593,"context_line":"``value`` - for example, the ``earliest`` aggregation in the example operates"}],"source_content_type":"text/x-rst","patch_set":1,"id":"fa7ab95a_7b49318e","line":590,"updated":"2016-08-31 16:22:14.000000000","message":"red!","commit_id":"5409cc7412f4a1e1130b15bbaf7123d87d5293e7"},{"author":{"_account_id":7665,"name":"Travis Tripp","email":"os.travis.tripp@gmail.com","username":"travis.tripp"},"change_message_id":"77fc4c0789b348dab35e3ff1bb7098373d3c8f25","unresolved":false,"context_lines":[{"line_number":594,"context_line":"on a date field whose internal representation is a timestamp."},{"line_number":595,"context_line":""},{"line_number":596,"context_line":".. _`Elasticsearch aggregation`: https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations.html"},{"line_number":597,"context_line":""},{"line_number":598,"context_line":""},{"line_number":599,"context_line":"Freeform queries"},{"line_number":600,"context_line":"****************"}],"source_content_type":"text/x-rst","patch_set":1,"id":"fa7ab95a_26ceac5a","line":597,"updated":"2016-08-31 16:22:14.000000000","message":"Might be worth noting that the type field still applies to limit it to certain document types and the aggregation queries still apply RBAC rules.","commit_id":"5409cc7412f4a1e1130b15bbaf7123d87d5293e7"},{"author":{"_account_id":10063,"name":"Steve McLellan","email":"steven.j.mclellan@gmail.com","username":"sjmc7"},"change_message_id":"ae38ec9235c2674800e710503381fd2fe212c06b","unresolved":false,"context_lines":[{"line_number":594,"context_line":"on a date field whose internal representation is a timestamp."},{"line_number":595,"context_line":""},{"line_number":596,"context_line":".. _`Elasticsearch aggregation`: https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations.html"},{"line_number":597,"context_line":""},{"line_number":598,"context_line":""},{"line_number":599,"context_line":"Freeform queries"},{"line_number":600,"context_line":"****************"}],"source_content_type":"text/x-rst","patch_set":1,"id":"fa7ab95a_b3403d09","line":597,"in_reply_to":"fa7ab95a_26ceac5a","updated":"2016-08-31 16:51:52.000000000","message":"Done","commit_id":"5409cc7412f4a1e1130b15bbaf7123d87d5293e7"},{"author":{"_account_id":7665,"name":"Travis Tripp","email":"os.travis.tripp@gmail.com","username":"travis.tripp"},"change_message_id":"63b2d3cf4322190b52074a7560ea9e7667fb925b","unresolved":false,"context_lines":[{"line_number":597,"context_line":"on a date field whose internal representation is a timestamp."},{"line_number":598,"context_line":""},{"line_number":599,"context_line":".. _`Elasticsearch aggregation`: https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations.html"},{"line_number":600,"context_line":""},{"line_number":601,"context_line":""},{"line_number":602,"context_line":"Freeform queries"},{"line_number":603,"context_line":"****************"}],"source_content_type":"text/x-rst","patch_set":2,"id":"fa7ab95a_f6dc7376","line":600,"updated":"2016-08-31 16:57:24.000000000","message":"Here is a real world query that demos nested aggregations.  Maybe could include:\nSome queries may required nested aggregations (link) for nested properties. For example, if you want to get an summary of of images and which flavors are used for current all active instances across project, include the following query:\n{\n\t\"type\": \"OS::Nova::Server\",\n\t\"limit\": 0,\n\t\"all_projects\": true,\n\t\"aggs\": {\n\t\t\"flavors\": {\n\t\t\t\"nested\": {\n\t\t\t\t\"path\": \"flavor\"\n\t\t\t},\n\t\t\t\"aggs\": {\n\t\t\t\t\"id\": {\n\t\t\t\t\t\"terms\": {\n\t\t\t\t\t\t\"field\": \"flavor.id\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\t\"images\": {\n\t\t\t\"nested\": {\n\t\t\t\t\"path\": \"image\"\n\t\t\t},\n\t\t\t\"aggs\": {\n\t\t\t\t\"id\": {\n\t\t\t\t\t\"terms\": {\n\t\t\t\t\t\t\"field\": \"image.id\"\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n(link) https://www.elastic.co/guide/en/elasticsearch/guide/current/nested-aggregation.html","commit_id":"f8e4e3e74ef1da2bed8f495a54fc46dda19bd798"},{"author":{"_account_id":14680,"name":"Rick Aulino","email":"rick.aulino@hpe.com","username":"ricka"},"change_message_id":"9444d48623fe39be6318889f722ddcefa146066e","unresolved":false,"context_lines":[{"line_number":597,"context_line":"on a date field whose internal representation is a timestamp."},{"line_number":598,"context_line":""},{"line_number":599,"context_line":".. _`Elasticsearch aggregation`: https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations.html"},{"line_number":600,"context_line":""},{"line_number":601,"context_line":""},{"line_number":602,"context_line":"Freeform queries"},{"line_number":603,"context_line":"****************"}],"source_content_type":"text/x-rst","patch_set":2,"id":"fa7ab95a_9095d941","line":600,"in_reply_to":"fa7ab95a_f6dc7376","updated":"2016-09-01 00:42:46.000000000","message":"Done","commit_id":"f8e4e3e74ef1da2bed8f495a54fc46dda19bd798"}],"searchlight/tests/functional/test_api.py":[{"author":{"_account_id":7665,"name":"Travis Tripp","email":"os.travis.tripp@gmail.com","username":"travis.tripp"},"change_message_id":"77fc4c0789b348dab35e3ff1bb7098373d3c8f25","unresolved":false,"context_lines":[{"line_number":803,"context_line":"        self._index(images_plugin, [image_doc])"},{"line_number":804,"context_line":"        self._index(volumes_plugin, [test_utils.DictObj(**volume_doc)])"},{"line_number":805,"context_line":""},{"line_number":806,"context_line":"        query \u003d {"},{"line_number":807,"context_line":"            \"limit\": 0,"},{"line_number":808,"context_line":"            \"query\": {\"match_all\": {}},"},{"line_number":809,"context_line":"            \"aggregations\": {"}],"source_content_type":"text/x-python","patch_set":1,"id":"fa7ab95a_26c14c81","line":806,"updated":"2016-08-31 16:22:14.000000000","message":"If we can include type in the query and ensure that RBAC is still applied, would be good.","commit_id":"5409cc7412f4a1e1130b15bbaf7123d87d5293e7"},{"author":{"_account_id":10063,"name":"Steve McLellan","email":"steven.j.mclellan@gmail.com","username":"sjmc7"},"change_message_id":"ae38ec9235c2674800e710503381fd2fe212c06b","unresolved":false,"context_lines":[{"line_number":803,"context_line":"        self._index(images_plugin, [image_doc])"},{"line_number":804,"context_line":"        self._index(volumes_plugin, [test_utils.DictObj(**volume_doc)])"},{"line_number":805,"context_line":""},{"line_number":806,"context_line":"        query \u003d {"},{"line_number":807,"context_line":"            \"limit\": 0,"},{"line_number":808,"context_line":"            \"query\": {\"match_all\": {}},"},{"line_number":809,"context_line":"            \"aggregations\": {"}],"source_content_type":"text/x-python","patch_set":1,"id":"fa7ab95a_d32a212c","line":806,"in_reply_to":"fa7ab95a_26c14c81","updated":"2016-08-31 16:51:52.000000000","message":"There\u0027s a separate test for RBAC below. I can include type.","commit_id":"5409cc7412f4a1e1130b15bbaf7123d87d5293e7"}]}
