Nested objects proximity query

Hello everyone.
Is it possible to query on nested data and take into account nested items proximity?

Let me hopefully make myself understandable:
Look at the example below, it is a part of a sentence where each word is a nested object and each word has been tagged by a POS tagger for the Icelandic language and therefore each word includes some metadata that I want to query.
What I want is to find e.g. two words (two nested objects) with specific attributes with X distance between. For example "expanded_tag.ordflokkur": "nafnorð" (noun) and "expanded_tag_ordflokkur" = "sagnorð" (verb) that come in order right next to each other.

{
  "words": [
    {
      "expanded_tag": {
        "fall": "nefnifall",
        "greinir": "með viðskeyttum greini",
        "kyn": "karlkyn",
        "orðflokkur": "nafnorð",
        "tala": "eintala"
      },
      "lemma": "landi",
      "tag": "nkeng",
      "word": "Landinn"
    },
    {
      "expanded_tag": {
        "háttur": "framsöguháttur",
        "mynd": "germynd",
        "orðflokkur": "sagnorð",
        "persóna": "3. persóna",
        "tala": "eintala",
        "tíð": "þátíð"
      },
      "lemma": "fá",
      "tag": "sfg3eþ",
      "word": "fékk"
    },
    {
      "expanded_tag": {
        "fall": "þolfall",
        "kyn": "hvorugkyn",
        "orðflokkur": "nafnorð",
        "tala": "eintala"
      },
      "lemma": "far",
      "tag": "nheo",
      "word": "far"
    },
    {
      "expanded_tag": {
        "fallstjórn": "stýrir þágufalli",
        "orðflokkur": "atviksorð"
      },
      "lemma": "með",
      "tag": "aþ",
      "word": "með"
    }
  ]
}

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.