title: how to serach by all ids in parent and children in elasticsearch?
body: <p>I have a C# POCO with this structure:</p>
  <pre><code>public class Subject{
     public string Name{get; set;}
     public Guid Id{get; set;}
     public List&lt;Subject&gt; Subsubject{get; set;}
  }
  </code></pre>
  <p>And store this data in elasticsearch. how can retrieve data using a GUID value which I do not know is the Id of which level of my structure?</p>
  <p>I need to search on all Id fields of my structure. is it possible? and if the answer is <strong>YES</strong>, How?
  It is preferred to retrieve the owner of id and not whole the object.</p>
  <pre><code>{
    &quot;Subject&quot; : {
      &quot;mappings&quot; : {
        &quot;properties&quot; : {
          &quot;id&quot; : {
            &quot;type&quot; : &quot;text&quot;,
            &quot;fields&quot; : {
              &quot;keyword&quot; : {
                &quot;type&quot; : &quot;keyword&quot;,
                &quot;ignore_above&quot; : 256
              }
            }
          },
          &quot;subSubject&quot; : {
            &quot;properties&quot; : {
              &quot;id&quot; : {
                &quot;type&quot; : &quot;text&quot;,
                &quot;fields&quot; : {
                  &quot;keyword&quot; : {
                    &quot;type&quot; : &quot;keyword&quot;,
                    &quot;ignore_above&quot; : 256
                  }
                }
              },
              &quot;subSubjects&quot; : {
                &quot;properties&quot; : {
                  &quot;id&quot; : {
                    &quot;type&quot; : &quot;text&quot;,
                    &quot;fields&quot; : {
                      &quot;keyword&quot; : {
                        &quot;type&quot; : &quot;keyword&quot;,
                        &quot;ignore_above&quot; : 256
                      }
                    }
                  },
                  &quot;title&quot; : {
                    &quot;type&quot; : &quot;text&quot;,
                    &quot;fields&quot; : {
                      &quot;keyword&quot; : {
                        &quot;type&quot; : &quot;keyword&quot;,
                        &quot;ignore_above&quot; : 256
                      }
                    }
                  }
                }
              },
              &quot;title&quot; : {
                &quot;type&quot; : &quot;text&quot;,
                &quot;fields&quot; : {
                  &quot;keyword&quot; : {
                    &quot;type&quot; : &quot;keyword&quot;,
                    &quot;ignore_above&quot; : 256
                  }
                }
              }
            }
          },
          &quot;title&quot; : {
            &quot;type&quot; : &quot;text&quot;,
            &quot;fields&quot; : {
              &quot;keyword&quot; : {
                &quot;type&quot; : &quot;keyword&quot;,
                &quot;ignore_above&quot; : 256
              }
            }
          }
        }
      }
    }
  }
  </code></pre>