http://aep-beta.onpc.fr/onglet/ecole/elementaire/bousbecque-59166?page=3

Query Metrics

11 Database Queries
63.64 ms Execution Time
34.00 ms Query Time

Queries

# Execution Time Query Time Info
1 4.43 ms 2.00 ms
{"query":{"bool":{"must":[{"terms":{"type":["02-ELEM","03-PRIM"]}},{"bool":{"should":[{"terms":{"ville":["59098"]}},{"bool":{"should":[{"geo_distance":{"distance":"20km","coordonnees":{"lat":50.766667,"lon":3.083333}}}],"minimum_should_match":1}}],"minimum_should_match":1}}]}},"size":0,"sort":[{"_script":{"type":"string","order":"desc","script":{"lang":"painless","source":"\n                        String participant =\n                            'true' == doc['participant'].value ?\n                            '1' : '0';\n                        String type =\n                            false == Collections.disjoint(doc['type'], params.types) ?\n                            '1' : '0';\n                        String ville =\n                            false == Collections.disjoint(doc['ville'], params.villes) ?\n                            '1' : '0';\n\n                        return\n                            participant + '_' +\n                            type + '_' +\n                            ville + '_' +\n                            (params.graine + doc['graine'].value).hashCode();\n                    ","params":{"graine":"8af86c89","types":["02-ELEM","03-PRIM"],"villes":["59098"]}}}}]}
Path: aep_etablissement/etablissement/_search
Query: search_type=query_then_fetch
Method: GET (Http on localhost:9200)
Item count: 125
View formatted query   View cURL query   View query backtrace
2 3.78 ms 3.00 ms
{"query":{"bool":{"must":[{"terms":{"type":["02-ELEM","03-PRIM"]}},{"bool":{"should":[{"terms":{"ville":["59098"]}},{"bool":{"should":[{"geo_distance":{"distance":"20km","coordonnees":{"lat":50.766667,"lon":3.083333}}}],"minimum_should_match":1}}],"minimum_should_match":1}}]}},"size":60,"sort":[{"_script":{"type":"string","order":"desc","script":{"lang":"painless","source":"\n                        String participant =\n                            'true' == doc['participant'].value ?\n                            '1' : '0';\n                        String type =\n                            false == Collections.disjoint(doc['type'], params.types) ?\n                            '1' : '0';\n                        String ville =\n                            false == Collections.disjoint(doc['ville'], params.villes) ?\n                            '1' : '0';\n\n                        return\n                            participant + '_' +\n                            type + '_' +\n                            ville + '_' +\n                            (params.graine + doc['graine'].value).hashCode();\n                    ","params":{"graine":"8af86c89","types":["02-ELEM","03-PRIM"],"villes":["59098"]}}}}],"from":120}
Path: aep_etablissement/etablissement/_search
Query:
Method: GET (Http on localhost:9200)
Item count: 125
View formatted query   View cURL query   View query backtrace
3 6.60 ms 4.00 ms
{"query":{"bool":{"must":[{"terms":{"type":["02-ELEM","03-PRIM"]}},{"bool":{"should":[{"terms":{"ville":["59098"]}},{"bool":{"should":[{"geo_distance":{"distance":"20km","coordonnees":{"lat":50.766667,"lon":3.083333}}}],"minimum_should_match":1}}],"minimum_should_match":1}}]}},"size":1000,"sort":[{"_script":{"type":"string","order":"desc","script":{"lang":"painless","source":"\n                        String participant =\n                            'true' == doc['participant'].value ?\n                            '1' : '0';\n                        String type =\n                            false == Collections.disjoint(doc['type'], params.types) ?\n                            '1' : '0';\n                        String ville =\n                            false == Collections.disjoint(doc['ville'], params.villes) ?\n                            '1' : '0';\n\n                        return\n                            participant + '_' +\n                            type + '_' +\n                            ville + '_' +\n                            (params.graine + doc['graine'].value).hashCode();\n                    ","params":{"graine":"8af86c89","types":["02-ELEM","03-PRIM"],"villes":["59098"]}}}}]}
Path: aep_etablissement/etablissement/_search
Query:
Method: GET (Http on localhost:9200)
Item count: 125
View formatted query   View cURL query   View query backtrace
4 6.78 ms 4.00 ms
{"query":{"bool":{"must":[{"terms":{"type":["02-ELEM","03-PRIM"]}},{"terms":{"departement":["59"]}}]}},"size":1000,"aggs":{"ville":{"terms":{"field":"ville","size":1000}}}}
Path: aep_etablissement/etablissement/_search
Query:
Method: GET (Http on localhost:9200)
Item count: 247
View formatted query   View cURL query   View query backtrace
5 7.04 ms 4.00 ms
{"query":{"bool":{"must":[{"terms":{"type":["02-ELEM","03-PRIM"]}},{"terms":{"departement":["59"]}}]}},"size":1000,"aggs":{"filtresArray":{"terms":{"field":"filtresArray","size":1000}}}}
Path: aep_etablissement/etablissement/_search
Query:
Method: GET (Http on localhost:9200)
Item count: 247
View formatted query   View cURL query   View query backtrace
6 5.33 ms 2.00 ms
{"query":{"bool":{"must":[{"terms":{"type":["02-ELEM","03-PRIM"]}},{"terms":{"departement":["59"]}}]}},"size":1000,"aggs":{"lva":{"terms":{"field":"lva","size":1000}}}}
Path: aep_etablissement/etablissement/_search
Query:
Method: GET (Http on localhost:9200)
Item count: 247
View formatted query   View cURL query   View query backtrace
7 5.11 ms 2.00 ms
{"query":{"bool":{"must":[{"terms":{"type":["02-ELEM","03-PRIM"]}},{"terms":{"departement":["59"]}}]}},"size":1000,"aggs":{"lvb":{"terms":{"field":"lvb","size":1000}}}}
Path: aep_etablissement/etablissement/_search
Query:
Method: GET (Http on localhost:9200)
Item count: 247
View formatted query   View cURL query   View query backtrace
8 4.84 ms 2.00 ms
{"query":{"bool":{"must":[{"terms":{"type":["02-ELEM","03-PRIM"]}},{"terms":{"departement":["59"]}}]}},"size":1000,"aggs":{"eds":{"terms":{"field":"eds","size":1000}}}}
Path: aep_etablissement/etablissement/_search
Query:
Method: GET (Http on localhost:9200)
Item count: 247
View formatted query   View cURL query   View query backtrace
9 10.89 ms 5.00 ms
{"query":{"bool":{"must":[{"terms":{"type":["02-ELEM","03-PRIM"]}},{"terms":{"departement":["59"]}}]}},"size":1000,"aggs":{"typesInternatKeyword":{"terms":{"field":"typesInternatKeyword","size":1000}}}}
Path: aep_etablissement/etablissement/_search
Query:
Method: GET (Http on localhost:9200)
Item count: 247
View formatted query   View cURL query   View query backtrace
10 3.25 ms 2.00 ms
{"query":{"bool":{"must":[{"terms":{"type":["02-ELEM","03-PRIM"]}},{"bool":{"should":[{"terms":{"ville":["59098"]}},{"bool":{"should":[{"geo_distance":{"distance":"20km","coordonnees":{"lat":50.766667,"lon":3.083333}}}],"minimum_should_match":1}}],"minimum_should_match":1}}]}},"size":0}
Path: aep_etablissement/etablissement/_search
Query: search_type=query_then_fetch
Method: GET (Http on localhost:9200)
Item count: 125
View formatted query   View cURL query   View query backtrace
11 5.60 ms 4.00 ms
{"query":{"bool":{"must":[{"terms":{"type":["02-ELEM","03-PRIM"]}},{"bool":{"should":[{"terms":{"ville":["59098"]}},{"bool":{"should":[{"geo_distance":{"distance":"20km","coordonnees":{"lat":50.766667,"lon":3.083333}}}],"minimum_should_match":1}}],"minimum_should_match":1}}]}},"size":1000,"sort":[{"_script":{"type":"string","order":"desc","script":{"lang":"painless","source":"\n                        String participant =\n                            'true' == doc['participant'].value ?\n                            '1' : '0';\n                        String type =\n                            false == Collections.disjoint(doc['type'], params.types) ?\n                            '1' : '0';\n                        String ville =\n                            false == Collections.disjoint(doc['ville'], params.villes) ?\n                            '1' : '0';\n\n                        return\n                            participant + '_' +\n                            type + '_' +\n                            ville + '_' +\n                            (params.graine + doc['graine'].value).hashCode();\n                    ","params":{"graine":"8af86c89","types":["02-ELEM","03-PRIM"],"villes":["59098"]}}}}]}
Path: aep_etablissement/etablissement/_search
Query:
Method: GET (Http on localhost:9200)
Item count: 125
View formatted query   View cURL query   View query backtrace