Prefix type Search which datatype should choose

Hi Team,

For prefix type query search in Elasticsearch which datatype we should choose. It is known that the prefix type search has the capability to support both text and keyword.
We need your help in determining the more suitable datatype between the two choices.

Thanks,
Debasis

Different field types combined with query types give different search results, so the optimal combination for your use case will depend on your data and how you want to query or aggregate it in the future. By default the dynamic mappings in Elasticsearch map fields as both text and keyword which out of the box gives you the flexibility to query in different ways. This does take up more space on disk but is often a good starting point.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.