title: Search query for elastic search
body: <p>I have documents in elastic search in the following format</p>
  
  <pre><code>{
     "stringindex" : {
     "mappings" : {
    "files" : {
      "properties" : {
        "BaseOfCode" : {
          "type" : "long"
        },
        "BaseOfData" : {
          "type" : "long"
        },
        "Characteristics" : {
          "type" : "long"
        },
        "FileType" : {
          "type" : "long"
        },
        "Id" : {
          "type" : "string"
        },
        "Strings" : {
          "properties" : {
            "FileOffset" : {
              "type" : "long"
            },
            "RO_BaseOfCode" : {
              "type" : "long"
            },
            "SectionName" : {
              "type" : "string"
            },
            "SectionOffset" : {
              "type" : "long"
            },
            "String" : {
              "type" : "string"
            }
          }
        },
        "SubSystem" : {
          "type" : "long"
        }
      }
    }
  }
  </code></pre>
  
  <p>}
  }</p>
  
  <p>My requirement is when I search for a particular string (String.string) i want to get only the FileOffSet (String.FileOffSet) for that string.
  How do i do this?</p>
  
  <p>Thanks</p>