ElasticSearch — Inverted Index, Source, Index, Norms, Routing…

Photo by Ryan Geller on Unsplash

Lucene vs ElasticSearch

What is Inverted Index?

Sample documents and resulting inverted index — elastic.co

What are _source and source?

{
"_source" : {
"enabled" : false
},
"properties": {
"organizationId": {
"type": "keyword"
},
"accountId": {
"type": "keyword"
},
"type": {
"type": "text",
"analyzer": "whitespace"
}
}
}
"_source": [ "field1.*", "field2.*" ],

What is index?

{   
"foo": {
"type": "text",
"index": true
}
}
{   
"foo": {
"type": "keyword",
"index": true
}
}

What is norms?

"properties": {
"title": {
"type": "text",
"norms": false
}
}

Nodes & Shards

What is routing?

{
"_routing": {
"required": true
},
"properties": {
"organizationId": {
"type": "keyword"
},
"accountId": {
"type": "keyword"
}
}

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store