Hi buddy,

I am working on a music search project and I have a special requirement.
It's about the ranking when query the artist name.

My project is I get a lot of music records from different sources, some are
the same song name but the size or source are different.
I want to implement that effect that the results had better differ from each
other in one page, but I want to show some results first like those contains
more attributes.

Ex: When I query the artist "Michael Jackson", there are 1000results and 200
songname are repeated. So the ideal thing is to let users get more different
songs in on page and the results have lyrics must be shown in the front
pages. My current solr query is:

?q=ne+yo&qf=artist&defType=dismax&sort=lyric%20desc,links%20desc&start=0&rows=20&indent=on
So the results will shows some same song names together cause their
scores are totally the same.
How to modify to support random, hash effect?

BTW: I find the sorting with multi conditions does not work well. I
want to sort the second attribute
(links desc)based on the first condition. ( lyric desc) . The results
with lyric shows really in
the front, but the links attribute seems not in order.

Could anyone help me? Thx.

Reply via email to