elasticSearch Summary

1, matchQuery and termQuery difference

  matchQuery: word search terms will then be matched with the target query field, if any points on a field goal with the word matching word, you can check for them.

  termQuery: search terms will not be word processing, but as a whole match the target field, if an exact match, you can check for them.

  wildcardQuery: fuzzy matching is term-level query, support wildcards, such as: QueryBuilders.wildcardQuery ( "content", "* whole *")

2, must and should distinguish  

  must: the equivalent of MySQL and 

  should: the equivalent of MySQL or (inefficient)

3, how to view how the word is a string of

GET /risk_user_his/_analyze
{
  "field": "deviceUuidFristLogin",
  "text": "EA760BCA-E3F3-4005-821C-54A6B1051B4D"
}

4, how to modify the mapping of a field, regardless of the word changed to

 

 

 

reference:  

 

API operations ES Kibana interface: https://www.cnblogs.com/xll970105/p/11561537.html

 

es various query: https://www.colabug.com/2018/0902/4334463/

Guess you like

Origin www.cnblogs.com/wzk-0000/p/12361320.html