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

  • Home
  • SEARCH
  • 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 9152369
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T12:01:31+00:00 2026-06-17T12:01:31+00:00

The default behavior of ElasticSearch when indexing a child document underneath a parent ID,

  • 0

The default behavior of ElasticSearch when indexing a child document underneath a parent ID, is to index the child document regardless of whether the parent document actually exists or not.

The child document will go into the index with the parent_id set to the parent specified, despite the fact that there is no parent document present in the index.

I have searched the ES documentation (and source code to some degree) but cannot seem to find an obvious way to change this behavior.

I would like to cause ES to reject a child index attempt if the parent ID does not exist.

I am trying to avoid hack solutions like clean up jobs, additional queries etc… These are a last resort if there is truly no proper way to achieve this.

  • 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-17T12:01:32+00:00Added an answer on June 17, 2026 at 12:01 pm

    After working with Elasticsearch for a while I’ve found that there are a number of default behaviors that I don’t like and I’ve built up a framework to enforce the behaviors I’d rather have. I understand your desire to be able to set a flag or option to prevent orphan child inserts, but I think you will have to to wrap your inserts with a query and test to achieve what you’re trying to do.

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

Sidebar

Related Questions

The default behavior of XML serialization (to_xml) for ActiveRecord objects will emit 'type' and
I don't know if this is default behavior or not, but it seems weird
In a default behavior, the textarea press enter will become new line, but I
I have a problem writing a script that will prevent default behavior of submit
How can I override default behavior of displaying item label on the input when
Rails question. The default behavior for error validation is to fieldWithError-styled div around the
In the context of Entity Framework 4, the default behavior when adding a function
When deploying a web-role to the Windows Azure cloud, what is the default behavior
In my Spring 3.1 application, I sometime need to change the default behavior of
I'm trying to use Jeditable as an inline editing solution. The default behavior (click

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.