I have a Collection in ArangoDB populated with element like this:

```
{

  "id": "XXXXXXXX",
  "relation": [
    {
      "AAAAA": "AAAAA",
    },
    {
      "BBBB": "BBBBBB",
      "field": {
        "v1": 0,
        "v2": 0,
        "v3": 0
      }
    },
    {
      "CCCC": "CCCC",
      "field": {
        "v1": 0,
        "v2": 1,
        "v3": 2
      }
    },
  ]
}

```

I want to return only elements that have `field.v1 > 0` (or a combination of v values).
I've tried to write an AQL query like this one, but it doesn't use indexes and it is so slow with 200000+ elements.

```
FOR a in X
    FILTER LENGTH(a.relation) > 0
    LET relation =  a.relation
    FOR r in relation
        FILTER r.field > null 
        FILTER r.field.v1 > 0
return a

```

I've tried to create these indexes:

* `full text on relation[*]field`
* `skip list on relation[*]field`
* `hash on relation[*]field`
but with no result.

What can I do? Can you suggest me any changes to the query?

Thanks.

Best regards,

Daniele