Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how indexes are stored in elasticsearch

I had certain question regarding elasticsearch but unable to find appropriate answer:

How indexes are stored in Elasticsearch. At which folder location they are stored.

Is it possible to store at different location.

What does this mean " localhost:9200/path1/path2 "

On which algorithm indexing is done in elasticsearch.

like image 962
Lav Avatar asked May 23 '13 11:05

Lav


People also ask

Where are the indexes stored in Elasticsearch?

Indexes are stored on disk as configured in elasticsearch. yml with the configuration option path. data ; localhost on port 9200 is the default connection port for the HTTP REST interface, the path of the url generally defines an action to be taken (like searching for documents);

How does Elasticsearch store the data?

Elasticsearch stores data as JSON documents. Each document correlates a set of keys (names of fields or properties) with their corresponding values (strings, numbers, Booleans, dates, arrays of values, geolocations, or other types of data).

Does Elasticsearch store data in memory or disk?

Elasticsearch does not store all data on the heap. Instead data is read from disk when required and the heap is basically used as working memory. This is why the heap should be as most 50% of available RAM (ideally as small as the use case allows).


1 Answers

  • Indexes are stored on disk as configured in elasticsearch.yml with the configuration option path.data;
  • localhost on port 9200 is the default connection port for the HTTP REST interface, the path of the url generally defines an action to be taken (like searching for documents);
  • What exactly do you mean with the algorithm? Elasticsearch is a search engine, it uses Lucene to read documents and index their properties to enable search.

To be fair, all of this is available in the documentation for elasticsearch.

like image 113
akaIDIOT Avatar answered Oct 12 '22 09:10

akaIDIOT