http://aep-beta.onpc.fr/fiche/college-et-lycee-saint-clement-cudos/IN033-61?diapo-id=4549

Query Metrics

2 Database Queries
6.93 ms Execution Time
4.00 ms Query Time

Queries

# Execution Time Query Time Info
1 3.54 ms 2.00 ms
{"query":{"bool":{"must_not":[{"terms":{"_id":["IN033-61"]}}],"must":[{"bool":{"should":[{"terms":{"ville":["33144"]}},{"bool":{"should":[{"geo_distance":{"distance":"20km","coordonnees":{"lat":44.383333,"lon":-0.216667}}}],"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":"b1d27cb8","types":[],"villes":["33144"]}}}}]}
Path: aep_etablissement/etablissement/_search
Query: search_type=query_then_fetch
Method: GET (Http on localhost:9200)
Item count: 7
View formatted query   View cURL query   View query backtrace
2 3.39 ms 2.00 ms
{"query":{"bool":{"must_not":[{"terms":{"_id":["IN033-61"]}}],"must":[{"bool":{"should":[{"terms":{"ville":["33144"]}},{"bool":{"should":[{"geo_distance":{"distance":"20km","coordonnees":{"lat":44.383333,"lon":-0.216667}}}],"minimum_should_match":1}}],"minimum_should_match":1}}]}},"size":6,"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":"b1d27cb8","types":[],"villes":["33144"]}}}}],"from":0}
Path: aep_etablissement/etablissement/_search
Query:
Method: GET (Http on localhost:9200)
Item count: 7
View formatted query   View cURL query   View query backtrace