2014-06-12 13:50:35 |
Andrew Hayzen |
description |
Hi
I have a document with the following structure:
{
"playlist":
{
"name": "newies",
"tracks": [
{ "file": "new1", "title": "very new song" },
{ "file": "new2", "title": "even newer" }
]
}
}
This is my index expression:
expression: ["playlist.name", "playlist.tracks.file", "playlist.tracks.title"]
This is my query:
query: [{"name":"*"}, {"file":"*"}, {"title":"*"}]
However when I set the query to a listview only the first item for the track is displayed. Also if i have multiple documents with tracks when i set the name in the query to filter to only one playlist (document) this doesn't function as well. There is an example app here [0]
0 - https://code.launchpad.net/~andrew-hayzen/music-app/listitem-actions |
Hi
I have a document with the following structure:
{
"playlist":
{
"name": "newies",
"tracks": [
{ "file": "new1", "title": "very new song" },
{ "file": "new2", "title": "even newer" }
]
}
}
This is my index expression:
expression: ["playlist.name", "playlist.tracks.file", "playlist.tracks.title"]
This is my query:
query: [{"name":"*"}, {"file":"*"}, {"title":"*"}]
However when I set the query to a listview only the first item for the track is displayed. Also if i have multiple documents with tracks when i set the name in the query to filter to only one playlist (document) this doesn't function as well. There is an example app here [0]
0 - https://code.launchpad.net/~andrew-hayzen/+junk/test-u1db-playlists |
|