Created
          June 9, 2017 20:43 
        
      - 
      
 - 
        
Save RashadSaleh/9e537dc4324f65b8c40a19dacfec21ba to your computer and use it in GitHub Desktop.  
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | curl -XGET localhost:9200/main/user/_search?pretty -d '{ | |
| "query": { | |
| "multi_match" : { | |
| "query": "0789514417 [email protected]", | |
| "type": "cross_fields", | |
| "operator": "or", | |
| "analyzer": "keyword", | |
| "fields": [ "profile.contacts.email.address", "profile.contacts.phone.number" ] | |
| } | |
| } | |
| }' | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment