2014-11-25 76 views

回答

0

我這樣做是使用鍵盤映射字段定義:

"suggester": {     
    "type": "completion",  
    "context": {    
     "alias_name": {    
     "type": "category" 
    }      
}  

這是創紀錄的結構:

record = {          
'input': input_text,      
'output': output_text, 
'context': {         
    'alias_name': alias_name       
},           
'weight': weight        
}     
      `       

..但似乎路由不工作(查詢打所有的碎片)