Skip to content

CSV upload indexes FALSE values are truthy #7977

Closed

Description

If a CSV contains boolean values in all caps (TRUE/FALSE), Elasticsearch will index "FALSE" as a truthy value. This is because the sever side CSV parser does not recognize FALSE as a boolean value, and sends it as a JSON string. To make matters worse, the client side parser DOES detect it as a boolean value, so the user will think everything is working fine until they realize every FALSE value has been indexed as true.

I can think of a couple ways to fix this:

  • Turn off auto type detection on the server side and use the client side selections. We'd just have to normalize things like geo_point to their JSON values. This is probably the correct solution.
  • Somehow normalize capitalization of boolean values.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    Feature:Add DataAdd Data and sample data feature on HomebugFixes for quality problems that affect the customer experience

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions