简体   繁体   中英

creation of multiple index in Elasticsearch

I was reading the document and happened to read the multiple index creation and ability to search on multiple indexes and also its possible to search specific search in Elasticsearch.

For example i have two index like releasedArea and WorkArea. am i can search by giving http://localhost:9200/_search?pretty=true which will search in all index

and i can specifically search like http://localhost:9200/releasedArea,WorkArea/_search?pretty=true .

So i think this specification will improve in terms of performance, if already knows where to search. if we don't know, where to search it should search in all index.

Could you please tell me, am i correct? else please let me know, what could be the reason.

Your understanding is correct. If you do not provide any index name, then it will search in all indices and of course this might hit search performance. If you know which index to search, you should specify it explicitly while using Search APIs .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM