emilly
emilly

Reputation: 10538

Does elastic search keep index and document both in cache?

I have gone through the link and couple of tutorial on elastic search(ES) My question is does ES keep both index and documents(to be searched) under cache/memory ?

Consider I created the book in database and returned primary key is 1001. Now I store the same document under ElasticSearch. Here is my url(http://localhost:9200/bookstore/books/1001) for creating book with id as 1001(1001 is primary key from DB) and below is the document

    {
      "title": "Java 8 Optional In Depth",
      "category":"Java",
      "published_date":"23-FEB-2017",
      "author":"Rambabu Posa"
    }

My understanding:-

  1. I believe it will create index on all fields(title, category, published_date, author) by default
  2. ES store the document and index both in memory ?

Upvotes: 0

Views: 773

Answers (1)

dadoonet
dadoonet

Reputation: 14537

  1. Yes
  2. Yes and no. Actually the OS caches index files in RAM and plays a great role here

Upvotes: 0

Related Questions