I hereby claim:
- I am jordancardwell on github.
- I am jordancardwell (https://keybase.io/jordancardwell) on keybase.
- I have a public key ASA1b3mqEN4jXOXMCbJ7lUzWAs4ghds-YIcKTewNrjq5vwo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| var appname = 'test.event.1' | |
| var bus1 = require('servicebus').bus(); | |
| bus1.subscribe(appname, function (event) { | |
| console.log(`1 caught ${event.counter}`); | |
| }); | |
| var bus2 = require('servicebus').bus(); | |
| bus2.subscribe(appname, function (event) { | |
| console.log(`2 caught ${event.counter}`); | |
| }); |
| /spoiler . | |
| spoiled |
| GET /my_index/my_type/_search?explain=true | |
| { | |
| "query": { | |
| "match": { | |
| "ngram": { | |
| "query": "frod", | |
| "minimum_should_match": "100%" | |
| } | |
| } | |
| } |
| //this matches 'frodo' and sends results to the top, since `name` field is boosted | |
| // but also matches 'theodore' and 'rudolpho' | |
| { | |
| "size":100, | |
| "from":0, | |
| "query":{ | |
| "multi_match":{ | |
| "query":"frodo", | |
| "fields":[ |
| //this matches 'frodo' and sends results to the top, since `name` field is boosted | |
| // but also matches 'theodore' and 'rudolpho' | |
| { | |
| "size":100, | |
| "from":0, | |
| "query":{ | |
| "multi_match":{ | |
| "query":"frodo", | |
| "fields":[ |
| { | |
| "my_index": { | |
| "settings": { | |
| "index": { | |
| "number_of_shards": "5", | |
| "max_result_window": "30000", | |
| "creation_date": "1475853851937", | |
| "analysis": { | |
| "filter": { | |
| "ngram_filter": { |