hatellla
hatellla

Reputation: 5132

Elastic Search : Does it maintain inverted and non inverted indexes both internally?

I was reading about elastic search. It looks like it maintain inverted index on all terms in all the documents. But does it also maintain normal indexing, i.e. from document id to document? Also, as it maintains lot of indexing on all fields and for all terms, so does it take too much memory? Eg. when compared to DynamoDb, where say, I made indexes on only 2 fields and here it form indexes on each and every term, which would be more memory efficient?

Upvotes: 0

Views: 268

Answers (2)

jhilden
jhilden

Reputation: 12419

Dynamo and ES are very different beasts. A few examples:

  1. in ES, you can specify how to index every field and search on every field.
  2. in Dynamo, you can only have up to 5 indexes, everything else is a full scan
  3. in ES, you control your cluster settings
  4. Dynamo the "cluster" is managed for you, but you need to be really smart about how you partition your data.
  5. in ES, you can query for exactly what you want, do aggregations on the server, get stats, really cool stuff.
  6. in Dynamo you can't even do an "order by"

Upvotes: 1

xeraa
xeraa

Reputation: 10859

"too much" is a very opinionated question and will totally depend on your use-case. To make an informed decision, you'll need to dive into a few topics (Elasticsearch is really powerful, but you need to know what you are doing):

So it will really depend on your data, your mapping, and what you want to achieve with your data. I'm afraid you will need to build a quick prototype with exactly your data and use-case to find out.

Upvotes: 1

Related Questions