Query in CouchBase Lite Android

Hello,
I have a View with group keys
Ex: [genre, artist, album, track]. So now, I want to get the row of index with just key “artist” and i don’t care the other.
Ex: get all row in the View with “album” = “abc”.
How I can do that ? Thank you.

You’ll need to create another view whose primary key is what you’re searching for.

Think of views as being like SQL indexes. In a SQL database, if you have an existing index by (genre, artist, album track) you wouldn’t use it to search by artist; instead you’d create another index whose primary key is artist.