Here ya go, had to trim down the number of results returned due to a character limit:
Valid NEST response built from a successful (200) low level call on POST: /companies%2Ccontacts/_search?typed_keys=true&search_type=dfs_query_then_fetch
Audit trail of this API call:
Request:
{"from":0,"query":{"bool":{"must":[{"bool":{"minimum_should_match":1,"should":[{"match":{"dba_name.edge_ngram":{"operator":"and","query":"cert ang+","_name":"Company.DbaName.EdgeNgram.Match"}}},{"match":{"dba_name":{"operator":"and","query":"cert ang+","_name":"Company.DbaName.Match"}}},{"match_phrase_prefix":{"dba_name.edge_ngram":{"query":"cert ang+","slop":100,"_name":"Company.DbaName.EdgeNgram.MatchPhrase"}}},{"match":{"first_last_name.edge_ngram":{"operator":"and","query":"cert ang+","_name":"Contact.FirstLastName.EdgeNgram.Match^0.0"}}},{"match":{"preferred_last_name.edge_ngram":{"operator":"and","query":"cert ang+","_name":"Contact.PreferredLastName.EdgeNgram.Match^0.0"}}}]}}],"should":[{"nested":{"ignore_unmapped":true,"path":"children","query":{"match":{"children.dba_name.edge_ngram":{"operator":"and","query":"cert ang+","_name":"Company.Children.DbaName.EdgeNgram.Match"}}},"score_mode":"max","boost":2.0}},{"terms":{"_name":"Contact.JobFunctions.Term^8.0","boost":8.0,"job_functions":[1863,1864,1872,1873]}}]}},"sort":[{"is_currently_licensed":{"unmapped_type":"boolean","missing":0,"order":"desc"}},{"_score":{"order":"desc"}},{"first_last_name.keyword":{"unmapped_type":"keyword","missing":"","order":"asc"}},{"is_previously_licensed":{"unmapped_type":"boolean","missing":0,"order":"desc"}},{"last_activity_date":{"order":"desc"}}],"_source":{"excludes":["children"],"includes":["*"]},"track_scores":true}
Response:
{"took":15,"timed_out":false,"_shards":{"total":2,"successful":2,"skipped":0,"failed":0},"hits":{"total":{"value":20,"relation":"eq"},"max_score":933.4909,"hits":[{"_index":"companies_v3","_type":"_doc","_id":"6404","_score":933.4909,"_source":{"parent":{"dba_name":"Certified Angus Beef LLC - Wooster","key":6404},"agent":{"hostname":"BAUMANXPS15","id":"e3c44bd2-4f90-46af-a626-6c1cd7755f1e","ephemeral_id":"ebbce2ae-a5dc-444d-b2f3-d6f74bc60f87","type":"filebeat","version":"7.3.0"},"log":{"file":{"path":"C:\Elasticsearch\Artifacts\input\filebeat_companies.2019_08_15.json"},"offset":3904432},"city":"Wooster","geo_accuracy":8,"state_abbreviation":"OH","star_ranking":0,"country_abbreviation":"USA","ecs":{"version":"1.0.1"},"@version":"1","primary_license_description":"Corp. Office - Misc.","key":6404,"banner":{"dba_name":"Certified Angus Beef LLC - Wooster","key":6404},"last_activity_date":"2019-08-01T00:00:00","dba_name":"Certified Angus Beef LLC - Wooster","volume_13_week":18661,"tags":,"input":{"type":"log"},"active_status":"T","@timestamp":"2019-08-15T14:45:10.349Z","is_currently_licensed":true,"open_issue_count":0,"is_previously_licensed":false,"menu_needed_status":0,"location":{"lon":-81.9438063,"lat":40.8507256},"primary_license_key":43,"primary_license_status":"T"},"sort":[1,933.4909,"",0,1564617600000],"matched_queries":["Company.DbaName.EdgeNgram.Match","Company.DbaName.EdgeNgram.MatchPhrase"]},{"_index":"companies_v3","_type":"_doc","_id":"216875","_score":933.4909,"_source":{"parent":null,"agent":{"hostname":"BAUMANXPS15","id":"e3c44bd2-4f90-46af-a626-6c1cd7755f1e","ephemeral_id":"ebbce2ae-a5dc-444d-b2f3-d6f74bc60f87","type":"filebeat","version":"7.3.0"},"log":{"file":{"path":"C:\Elasticsearch\Artifacts\input\filebeat_companies.2019_08_15.json"},"offset":130279478},"city":"Makati City","geo_accuracy":6,"state_abbreviation":null,"star_ranking":0,"country_abbreviation":"PHILIP","ecs":{"version":"1.0.1"},"@version":"1","primary_license_description":"Restaurant - International","key":216875,"banner":null,"last_activity_date":null,"dba_name":"Melo's Home of Certified Angus Beef","volume_13_week":0,"tags":,"input":{"type":"log"},"active_status":"T","@timestamp":"2019-08-15T14:45:27.369Z","is_currently_licensed":false,"open_issue_count":0,"is_previously_licensed":false,"menu_needed_status":0,"location":{"lon":121.0330876,"lat":14.5494421},"primary_license_key":42,"primary_license_status":"F"},"sort":[0,933.4909,"",0,-9223372036854775808],"matched_queries":["Company.DbaName.EdgeNgram.Match","Company.DbaName.EdgeNgram.MatchPhrase"]}