
Elasticsearch
银灯玉箫
这个作者很懒,什么都没留下…
展开
-
Elsticsearch: The Definitive Guide Learning Chapter 8 Sorting and Relevance
Sorting by Field ValuesMultilevel SortingWhat Is Relevance?The standard similarity algorithm used in ES is known as a term frequency/ inverse document frequency, or TF/IDF, takes the following fa...原创 2019-08-08 09:30:21 · 190 阅读 · 0 评论 -
Elasticseach: The Defnitive Guide Learning Chapter 6 Mapping and Analysis
Exact Values Versus Full TextInverted IndexThe process of tokenization and normalization is called analysis.Testing AnalyzersCore Simple Field TypesWe can update a mapping to add a new f...原创 2019-08-07 14:30:36 · 141 阅读 · 0 评论 -
Elasticsearch: The Defnitive Guide Chapter 7 Full-body Search
...原创 2019-08-07 17:16:41 · 132 阅读 · 0 评论 -
Elasticsearch: The Definitive Guide Learning Chapter 18 Getting started with Language
Using Language AnalyzersConfiguring Language Analyzers原创 2019-08-12 14:59:15 · 134 阅读 · 0 评论 -
Elasticsearch: The Definitive Guide Learning Chapter 19 Identifying Words
The standard analyzer is used by default for any full–text analyzed string field.Punctuation may or may not be considered part of a word, depending on where it appears:icu_tokenizerTidying up ...原创 2019-08-12 16:20:37 · 157 阅读 · 0 评论 -
Elasticsearch: The Definitive Guide Learning Chapter20 Normlizing Tokens
lowercase filterLiving in a Unicode WorldUnicode Case FoldingSorting and CollationsCase-Insensitive SortingIn other words, we need an analyzer that will emit a single lowercase token:原创 2019-08-13 09:21:26 · 119 阅读 · 0 评论 -
Elasticsearch: The Definitive Guide Learning Chapter21 Redcing Words to Their Root Form
Using an algorithmic StemmerDictionary StemmersInstead of applying a standard set of rules to each word, they simply look up the word in the dicitionary. Theoretically, they could produce much b...原创 2019-08-13 10:19:55 · 178 阅读 · 0 评论 -
es 6.5版本索引命名约束
index名称限制:小写字母不能包含,/ *,?”,<、> |“(空格字符),#7.0之前的索引可能包含冒号,但是不赞成这样做,7.0+不支持这样做不能以-,_,+开头不能。不能 .或者. .不能超过255字节(注意它是字节,所以多字节字符会更快地计算到255限制)...原创 2019-08-26 17:05:00 · 464 阅读 · 0 评论 -
索引别名
Index Aliases and Zero DowntimeThe problem with the reindexing process described previously is that you need to update your application to use the new index name.An index alias is like a shortcut or...原创 2019-08-27 09:02:46 · 237 阅读 · 0 评论 -
Elasticsearch The Definitive Guide Chapter Part IV Aggregations 25 High-level Concepts
Buckets and Metrics原创 2019-09-20 10:28:02 · 129 阅读 · 0 评论 -
Elasticsearch The Definitive Guide Chapter Part IV Aggregations 26 AggregationTest_drive
Buckets inside BucketsLet’s take a look at the response.One Final ModificationLet’s add two metrics to calculate the in and max price for each make:Which gives us the following output...原创 2019-09-20 11:09:45 · 144 阅读 · 0 评论 -
Elasticsearch:The Definitive Guide Chapter 27:Building Bar Charts
原创 2019-09-20 14:14:11 · 107 阅读 · 0 评论 -
Elasticsearch: The Definitive Guide Learning Chapter 14 Multifield Search
Multiple Query StringsSingle Query StringThere is on simple one-size-fits-all approach to multiword, multifield queries. To get the best results, you have to know your data and know how to use the...原创 2019-08-09 14:56:54 · 130 阅读 · 0 评论 -
Elasticsearch: The Definitive Guide Learning Chapter 13 Full-text Search
The match QueryMultiword QueriesImproving PrecisionControlling PrecisionCombining QueriesScore CalculationControlling PrecisionHow match Uses boolBoosting Query ClausesContro...原创 2019-08-09 10:50:17 · 169 阅读 · 0 评论 -
Elasticsearch: The Definitive Guide Learning Chapter 9 Distributed Search Execution
Search is executed in a two-phase process called query then fetch.Query PhaseDuring the initial query phase, the query is broadcast to a shard copy(a primay or replica shard) of every shard in the ...原创 2019-08-08 10:30:19 · 180 阅读 · 0 评论 -
Elasticsearch: The Definitive Guide Learning Chapter 10 Index Management
Creating an IndexDeleting an IndexConfiguring AnalyzersTypes and MappingsA type consists of a name-- such as user or blogpost – and a mapping. The mapping, like a database schema, describes t...原创 2019-08-08 14:11:00 · 136 阅读 · 0 评论 -
Elasticsearch: The Definitive Guide Learning Chapter 11 Inside a Shard
Dynamicallly Updatable IndicesNear Real-Time SearchRefresh APIBy default, every shard is refreshed automatically once every second.Making Changes Persistentflush APISegment Merg...原创 2019-08-08 15:25:29 · 287 阅读 · 0 评论 -
Elasticsearch: The Definitive Guide learning Chapter 1
Chapter 1Let’s Build an Employee DirectoryA single document represents a single employee.The act of stroring data in Elasticsearch is called indexing.You can draw some rough parallels to a tr...原创 2019-08-06 14:46:41 · 154 阅读 · 0 评论 -
Elasticsearch: The Definitive Guide Chapter 2 Life inside a Cluster
Add an IndexIn reality, an index is just a logical namespace that points to one or more pyhsical shards.A shard is a single instance of Lucence, and is a complete search engine in its own right....原创 2019-08-06 15:55:54 · 146 阅读 · 0 评论 -
Elasticsearch: The Definitive Guide Learning Chapter 12 Structued Search
With Structured search, the answer to your question is always a yes or no; something either belongs in the set or it does not. Structured search does not worry about document relevance or scoring; it ...原创 2019-08-08 17:26:23 · 218 阅读 · 0 评论 -
Elasticsearch: The Definitive Guide Learning Chapter22 Stopwrds: Performance Versus Precision
The default English stopwordsThese stopwords can usually be filtered out before indexing with little negative impact on retrieval.But is is a good idea to do so?Pros and Cons of Stopwordsthe pri...原创 2019-08-13 15:38:17 · 147 阅读 · 0 评论 -
Elasticsearch: The Definitive Guide Learning Chapter23 Synonyms
Using SynonymsFormatting SynonymsIn their simplest form, synonyms are listed as comma-separated values:“jump, leap, hop”If any of these terms is encountered, it is replaced by all of the listed s...原创 2019-08-13 16:52:15 · 315 阅读 · 1 评论 -
Elasticsearch: Th Definitive Guide learning Chapter 3 Data In, Data Out
What is a Document?In Elasticsearch, document refers to the top-level, or root object that is serialized into JSON and stored in Elasticsearch under a unique ID._indexAn index is like a database i...原创 2019-08-07 09:01:34 · 154 阅读 · 0 评论 -
Elasticsearch: The Definitive Guide Learning Chapter4 Distributed Document Store
Routing a Document to a ShardCreating, Indexing, and Deleting a DocumentCreat, index and delete requests are write operations, which must be successfully completed on the primary shard before the...原创 2019-08-07 09:59:52 · 162 阅读 · 0 评论 -
Elasticsearch: The Definitive Guide Learning Chapter 5 Searching-- The Basic Tools
The real power of Elasticsearch lies in its ability to make sense out of chaos – to turn Big Data into Big Information.A search can be any of the following:1. A structured query on concrete fields l...原创 2019-08-07 10:44:33 · 147 阅读 · 0 评论 -
elasticsearch datatypes
Data TypeseditMost of Elasticsearch data types are available in Elasticsearch SQL, as indicated below:Elasticsearch type SQL type SQL precisionCore typesnullnull0booleanboolean1bytetinyint...原创 2019-09-24 17:00:43 · 228 阅读 · 0 评论