Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9201359
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T22:59:16+00:00 2026-06-17T22:59:16+00:00

I have a field field10 which got created by accident when I updated a

  • 0

I have a field field10 which got created by accident when I updated a particular record in my index. I want to remove this field from my index, all its contents and recreate it with the below mapping:

"mytype":{
  "properties":{
    "field10":{ 
      "type":"string",
      "index":"not_analyzed",
      "include_in_all":"false",
      "null_value":"null"      
    }  
  }  
}

When I try to create this mapping using the Put Mapping API, I get an error: {"error":"MergeMappingException[Merge failed with failures {[mapper [field10] has different index values, mapper [field10] has different index_analyzer, mapper [field10] has different search_analyzer]}]","status":400}.

How do I change the mapping of this field? I don’t want to reindex millions of records just for this small accident.

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T22:59:17+00:00Added an answer on June 17, 2026 at 10:59 pm

    AFAIK, you can’t remove a single field and recreate it.
    You can not either just modify a mapping and have everything reindexed automagicaly. Imagine that you don’t store _source. How can Elasticsearch know what your data look like before it was indexed?

    But, you can probably modify your mapping using a multifield with field10.field10 using the old mapping and field10.new with the new analyzer.

    If you don’t reindex, only new documents will have content in field10.new.
    If you want to manage old documents, you have to:

    • Send again all your docs (it will update everything) – aka reindex (you can use scan & scroll API to get your old documents)
    • Try to update your docs with the Update API

    You can probably try to run a query like:

    curl -XPOST localhost:9200/crunchbase/person/1/_update -d '{
        "script" : "ctx._source.field10 = ctx._source.field10"
    }'
    

    But, as you can see, you have to run it document by document and I think it will take more time than reindexing all with the Bulk API.

    Does it help?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a string with text inside curlies like this: {field1}-{field}+{field3}Anthing{field4} from which I
In my Pivot table, I have a data field which I want to be
I have a select like this: SELECT field1, field2, field3 FROM table WHERE field1=
I have a legacy database with a field which contains some parentheses, like red(b).
I have a CRUD page which shows data from a query (a List of
I have a SQL query which I need to use to order a field.
I have a text file which was created using some Microsoft reporting tool. The
I have some sql scripts which use INSERT INTO secondtable (field, field1) SELECT field,
I have a mySQL database where I want to take values(field1) from one table(tableA)
i have a requirement in which i will retrieve all the records from the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.