2016-03-04 48 views

回答

0

好了现在我做了,但我已经学会了一切关于您的映射设置。以下是查询

 $params = [ 
      'index'=>'magzit', 
      'type'=>'laborlist', 
      'body' => [ 
       'query' => [ 
        'bool' => [ 
         'must' => [ 
          'match' => [ 'labor_com' => '10099' ] 

         ], 
         'should'=>[ 
          'match' => [ 'labor_title' => 'Physical Therapy Assistant Engineer II' ] 
         ], 
         'minimum_should_match'=>'3' 
        ] 
       ] 
      ] 
     ];