Hi All,
Here i am using searchQuery in the Full text search,If i want get the record with the type = “” and type = “private”
SearchQuery.match(“private”).field(“type”) –  Working
SearchQuery.match("").field(“type”) – Not  Working
i want to get the records rather that private type, can any once help in this to get the records.
             
            
              
            
           
          
            
              
                sreeks  
              
                  
                    April 1, 2019,  2:33pm
                   
                  3 
               
             
            
              Hi,
curl -XPOST -u uname:pwd  -H "Content-Type: application/json" http://127.0.0.1:9200/api/index/IndexName/query -d '{
"query": {"must_not": {"disjuncts": [{"field": "type", "match": "private"}]}}}' 
Cheers!
             
            
              
            
           
          
            
            
              i was tried with the above scenerio , i used like
const BooleanQuery = new SearchQuery.BooleanQuery();
but i am getting some documents which having the type “Private”
             
            
              
            
           
          
            
              
                sreeks  
              
                  
                    April 2, 2019, 10:04am
                   
                  5 
               
             
            
              Can you share your index definition to understand this better.