White space analyzer

Hi,

I am loading data into elastic search using Java API .

I have a column in a table which have multiple words.I have indexed that table into elastic search.

When I am visualizing it in Kibana , I have a word split in that column.

What can I do to make it as a single word without splitting.

I think white space analyzer should be used, but I don't know how to use it in Java API .

Thank You.

Hi,

Could you read this https://www.elastic.co/guide/en/elasticsearch/guide/2.x/aggregations-and-analysis.html ?
You should set the mapping using not_analyzed to your index.

Yeah ,
I got it.
But how can I use it in JAVA API.

Thank You

You have to define a mapping. Which you can do using: https://www.elastic.co/guide/en/elasticsearch/client/java-api/current/java-admin-indices.html#java-admin-indices-put-mapping

okay.

Thank You