Too many fields bad for elasticsearch index?

后端 未结 2 459
失恋的感觉
失恋的感觉 2021-01-17 17:01

Let say I have a thousand keys, and I would want to store the associated values. The intuitive approach seems to be something like

{
   \"key1\":\"someval\",         


        
2条回答
  •  半阙折子戏
    2021-01-17 17:28

    Elasticsearch is not ideal for 1000s of key-value pattern in a document. and if you want to update them in real-time or something, then try redis or riak for that.

    If you have thousands of keys in a document/record, essentially they become fields and the value become the text and indexed.

    From information-retrieval perspective with large data, it is advised to use fewer big fields than numerous small fields, for faster search performance.

提交回复
热议问题