No es posible recibir su consulta por este medio. Para que nos llegue 
correctamente debe usar la aplicación CAU: 

  http://cau.uca.es/


Agredeciendo su colaboración.

        Saludos

----------------------------------------------------------------------------
Aplicación CAU
http://cau.uca.es/

--- Begin Message ---

--- End Message ---
No es posible recibir su consulta por este medio. Para que nos llegue 
correctamente debe usar la aplicación CAU: 

  http://cau.uca.es/


Agredeciendo su colaboración.

        Saludos

----------------------------------------------------------------------------
Aplicación CAU
http://cau.uca.es/

--- Begin Message ---
Hello everyone,

I am working on a music app. We have songs and songs can have
multiple genres.
We have a song - genre join table.
We are indexing genre ids for each song as integers.

I would like to add feature for users to search by genre.

Given user searches for rock, pop, blues
I'd like to order search results so that

1. Give me all songs where genres contain all 3: rock, pop AND blues
2. Give me all songs that are rock and pop, rock and blues or blues and pop
3. Give me all songs where genre is either rock, pop or blues

In other words, first songs that match all the genres, then songs that
match 2/3 genres, then songs that match only 1 genre.

Is this even possible? How to do it?

Thank you,

Marko Avlijaš

--- End Message ---

Reply via email to