I'm trying to compare vespa query capabilities with both ES and MongoDb but I'm having a hard time to figure out what kind of support the YQL has for advanced queries over JSON. (by the way, this would be an awesome post for vespa blog)
For example given an object Person (see example below) with nested documents and/or an array of objects, how could do:
- Select all Persons whose hobbies contains 'sport'.
- Select all Persons whose Phones area code equals 'NY'.
- Select all Persons whose Mother's Birthdate is greater than 1960.
Person = {
Name: 'Joe',
Hobbies: ['sports','books','bonzais'],
Phones: [{Number: '12-3456-7890', areaCode: 'NY'},{Number: '22-3456-7890', areaCode: 'CA'}],
Mother: {
Name: 'Mom',
Birthdate: '1961-24-02'
}
}
Also, are there any best practices regarding how should I model an object for Vespa/YQL?
Thanks in advance.