ASCII value is not inserting to Elastic search index

I have 2 elastic search nodes,

  1. Elastic search NODE 1 ( version 6.5.1 )

  2. Elastic search NODE 2 ( version 7.0.1 )
    I am able to insert ASCII value in index in Elastic search NODE 1 but getting error while inserting to index in Elastic search NODE 2.

    OriginalException: Elasticsearch.Net.ElasticsearchClientException: Request failed to execute. Call: Status code 400 from: POST /_bulk. ServerError: Type: x_content_parse_exception Reason: "[1:681] [UpdateRequest] failed to parse field [doc]" CausedBy: "Type: json_parse_exception Reason: "Illegal unquoted character ((CTRL-CHAR, code 28)): has to be escaped using backslash to be included in string value

    at [Source: org.elasticsearch.transport.netty4.ByteBufStreamInput@3964aa34; line: 1, column: 683]""

    Request:

    <Request stream not captured or already read to completion by serializer. Set DisableDirectStreaming() on ConnectionSettings to force it to be set on the response.>

    Response:

    <Response stream not captured or already read to completion by serializer. Set DisableDirectStreaming() on ConnectionSettings to force it to be set on the response.>

Is there is a way to write the same ?

I need to insert 090232 to elastic search index please help
image

Not sure of what exactly is your problem, but it sounds like you are not using UTF-8 character encoding to send your data. You probably need to do that.
Then to remove/replace non-ascii characters, you can look at asciifolding token filter. But first, solve the initial problem with character encoding.

1 Like

It worked.Thank you so much :slightly_smiling_face:

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