• elasticsearch 搜索不支持单词的部分进行匹配


    zjtest7-frontend:/usr/local/logstash-2.3.4/config# curl -XGET http://192.168.32.80:9200/logstash-2015.06.21/testlog/_search?q=fir
    {"took":4,"timed_out":false,"_shards":{"total":5,"successful":5,"failed":0},"hits":{"total":0,"max_score":null,"hits":[]}}zjtest7-frontend:/usr/local/logstash-2.3.4/config# 
    
    
    zjtest7-frontend:/usr/local/logstash-2.3.4/config# curl -XGET http://192.168.32.80:9200/logstash-2015.06.21/testlog/_search?q=fir??
    {"took":3,"timed_out":false,"_shards":{"total":5,"successful":5,"failed":0},"hits":{"total":1,"max_score":1.0,"hits":[{"_index":"logstash-2015.06.21","_type":"testlog","_id":"AVbklB1aEY-
    
    onx06xxpY","_score":1.0,"_source":{
    "date" :"19999999999",
    "user":"scan188",
    "mesg":"first message into Elasticsearch"
    }}]}}
    
    zjtest7-frontend:/usr/local/logstash-2.3.4/config# curl -XGET http://192.168.32.80:9200/logstash-2015.06.21/testlog/_search?q=first
    {"took":3,"timed_out":false,"_shards":{"total":5,"successful":5,"failed":0},"hits":{"total":1,"max_score":0.30685282,"hits":[{"_index":"logstash-2015.06.21","_type":"testlog","_id":"AVbklB1aEY-
    
    onx06xxpY","_score":0.30685282,"_source":{
    "date" :"19999999999",
    "user":"scan188",
    "mesg":"first message into Elasticsearch"
    }}]}}zjtest7-frontend:/usr/local/logstash-2.3.4/config# 

  • 相关阅读:
    JSP根据身份证号码计算生日
    JSP听课笔记(二)
    JSP听课笔记(一)
    JDBC连接数据库过程(转载)
    PL/SQL
    阅读笔记
    javaScript的一些奇妙动画
    原型与原型链之间一些奥秘
    CSS3 @keyframes 规则
    Java语言中的基本词汇
  • 原文地址:https://www.cnblogs.com/zhaoyangjian724/p/6199256.html
Copyright © 2020-2023  润新知