In ArangoDB I am playing around with a test collection that is the IMDB dataset downloaded from their site as csv. The movies document is structured as follows:
movies:
{
_key: 123456,
name: "Movie title",
... ,
releases: [
{ title: "Local title",
region: 'US',
language: 'en',
... },
{ title: "Other title",
region: 'GB',
language: '??'
... }
]
}
I have created an index on the movies.releases[*].title
field.
I am interested in querying that field, not only by equality, but also by using case insensitive and substring matching.
The problem is that the only kind of query that uses the index is when I do something like that:
FOR doc IN movies:
FILTER 'search' IN doc.releases[*].title
With this I can only match the whole string in a case sensitive way: how can I look for a substring in a case insensitive way?
I cannot use a full-text index, since ArangoDB does not support it in arrays, and I cannot use LOWER()
and CONTAINS()
since it is an array.
Any ideas?
Thanks!