CopyPastor

Detecting plagiarism made easy.

Score: 0.8338510394096375; Reported for: String similarity Open both answers

Possible Plagiarism

Plagiarized on 2022-07-22
by rabbitbr

Original Post

Original - Posted on 2019-08-05
by Nivaldo Neto



            
Present in both answers; Present only in the new answer; Present only in the old answer;

Try this:
Will be return only document with all item of array with status PendingPM.
{ "query": { "bool": { "must_not": [ { "nested": { "path": "submittedJobs", "query": { "bool": { "must_not": [ { "match": { "submittedJobs.status": { "query": "PendingPM" } } } ] } } } } ] } } }
You can use the nested within a must clause. Like this:
GET /group/_search { "query": { "bool": { "must": [ { "nested": { "path": "members", "query": { "term": { "members.name": { "value": "alice" } } } } }, { "nested": { "path": "members", "query": { "term": { "members.name": { "value": "foo" } } } } } ] } } }

        
Present in both answers; Present only in the new answer; Present only in the old answer;