Skip to content

Instantly share code, notes, and snippets.

{
"from": "0",
"size": "25",
"query": {
"bool": {
"must": [{
"filtered": {
"query": {
"custom_score": {
"script": "_score >= 1 ? 100000000000 : 0",
object(Revinate\SharedBundle\Elasticsearch\Entity\GRM\GuestProperty)#247 (21) {
["id":protected]=>
string(32) "4beb38bb055a079db06bb619e92cf956"
["propertyId":protected]=>
int(360)
["city":protected]=>
NULL
["firstName":protected]=>
string(5) "Vinay"
["lastName":protected]=>
xdebug.collect_params=2
xdebug.default_enable=0 # do not enable by default
# profiler config
xdebug.profiler_output_dir=/var/log/xdebug
xdebug.profiler_append=1
xdebug.profiler_enable=0
# trigger manually only
xdebug.profiler_enable_trigger=1
xdebug.profiler_output_name=profile.%R.%t
$ sfconsole revinate:debug:daiyi --env=dev
object(Revinate\SharedBundle\Elasticsearch\Entity\GRM\GuestProperty)#610 (22) {
["id":protected]=>
string(32) "4beb38bb055a079db06bb619e92cf956"
["propertyId":protected]=>
int(360)
["city":protected]=>
string(9) "Sunnyvale"
["firstName":protected]=>
string(5) "Vinay"
mysql> show processlist;
+---------+----------+----------------------+---------+---------+------+-------+------------------+
| Id | User | Host | db | Command | Time | State | Info |
+---------+----------+----------------------+---------+---------+------+-------+------------------+
| 4774850 | revinate | 10.208.236.14:45699 | inguest | Sleep | 1 | | NULL |
| 4778642 | revinate | 10.208.236.14:50485 | inguest | Sleep | 1 | | NULL |
| 4778655 | revinate | 10.208.230.201:59397 | inguest | Sleep | 2 | | NULL |
| 4778661 | revinate | 10.208.236.14:50522 | inguest | Sleep | 2 | | NULL |
| 4778689 | revinate | 10.208.234.88:59617 | inguest | Sleep | 1 | | NULL |
| 4778694 | revinate | 10.208.234.88:59655 | inguest | Sleep | 2 | | NULL |
{
"took": 6,
"timed_out": false,
"_shards": {
"total": 20,
"successful": 20,
"failed": 0
},
"hits": {
"total": 1,
{
"_index": "grm",
"_type": "guest_property",
"_id": "5ea098ba43b11b8bd7b996067b0d2d83",
"_score": 1,
"_source": {
"id": "5ea098ba43b11b8bd7b996067b0d2d83",
"city": {
"value": null
},
Run post request to http://10.208.200.102:9200/grm/guest_property/_search
{
"from": 0,
"size": 0,
"query": {
"match_all": {}
},
"aggs": {
"interests": {
"terms": {
::: [inguest-es-02.stage.rpc][to1rWlMJQSSI2RCh3cE24A][inguest-es-02.stage.rpc.revinate.net][inet[/10.20.0.113:9300]]{max_local_storage_nodes=1, master=true}
26.6% (132.9ms out of 500ms) cpu usage by thread 'elasticsearch[inguest-es-02.stage.rpc][search][T#3]'
4/10 snapshots sharing following 19 elements
org.apache.lucene.search.ScoreCachingWrappingScorer.score(ScoreCachingWrappingScorer.java:51)
org.elasticsearch.common.lucene.MinimumScoreCollector.collect(MinimumScoreCollector.java:56)
org.apache.lucene.search.Weight$DefaultBulkScorer.scoreAll(Weight.java:185)
org.apache.lucene.search.Weight$DefaultBulkScorer.score(Weight.java:163)
org.apache.lucene.search.BulkScorer.score(BulkScorer.java:35)
org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:621)
#include "mbed.h"
#include "N5110.h"
#define TMP102_ADD 0X48
#define TMP102_R_ADD 0x91
#define TMP102_W_ADD 0x90
#define TEMP_REG 0x00
#define CONFIG_REG 0x01
#define THIGH_REG 0x02