Inquire harmony filter
The big difference between a filter and a query is that a filter doesn't calculate query relevance, it doesn't calculate the score of matching documents, so a filter is faster than a query in terms of performance, the reason being that it does less work. So in practice queries used with filters can improve search performance.
List of search methods:
Minimum Match Query
QueryBuilders.multiMatchQuery(Object text, String... fieldNames).minimumShouldMatch(“90%”)；
Text is the query text, fieldNames is an array of fields, meaning multiple fields in the document query, the percentage is the minimum match.
For example, if there are three subscripts after a text query, this means that the recalled doc has at least 3*0.9=2.7 rounded down by 2 entries to work.
QueryBuilders.matchPhraseQuery(String field, Object value).slop(2) ；
denotes a lexical entry that allows two split results to exist in the middle after splitting the value.
Several methods of controlling precision for ES queries.
(1) Use the query method provided by the ES open source code, and the setting of some parameters. The open source code can be refactored to meet the actual requirements if it has to be.
（2） In existing Chinese participleIK custom word breakers。 Add some technical terms harmony Common vocabulary。
（3） Customize the character filter based on the actual application， Participle filter， Exclude some meaningless participles。
I don't know, this sharing session has come to an end, thank you very much Mr. Ah Tu for bringing professional ElasticSearch technical sharing to the partners!
There is always some truth in the words that have been passed down for thousands of years, such as "a stone from another mountain can be used to make jade" and "if three people walk, there is a teacher in me".
Have time to occasionally think about where what you have comes from, and then pass on that idea when it's within your power and appropriate ......
--this, both sharing and gratitude!
Carlson College looks forward to hearing from you!
Editor radical in Chinese characters (Kangxi radical 2)Li Yue
Reviewed by Xu Bingzi
Copyright information: Carlson College.
Find out from here