I have the SOLR index song songs that are related to a high level album object. An example is shown below:
& lt; Song & gt; & Lt; Album Title & gt; Blood Sugar Sex Magic & lt; / Album title & gt; & Lt; Song title & gt; Under the bridge & lt; / Song title & gt; & Lt; Details & gt; A tragic song about junkies & lt; / Description & gt; & Lt; / Song & gt;
What I can do at this time can make an aspect on the title of the album so that a search on the song will show me how many hits are there for that keyword in that album.
The default behavior for SOLR is that aspects have been shown at least in the order of most hits. However, what I want to achieve is the list of initiatives to sort according to the relevance of the top hit for that album. For example, searching for the term "unhappy" can show one aspect with a hit "Blood Sugar Sex Magic" and there may also be an album called "Sad Clan Gone" where there are 10 hits. "Tragic Joker Songs" will be shown in the first aspect, though it may be that "under the bridge" comes as the most relevant song.
My question is how can I return all aspects but then have they been ordered to reciprocate the songs within them? What if I need to change or expand some underlying SOLR code?
Thanks in advance.
Solar can look at the aspect only in terms of glossary or by counting (see)
If you want to apply a different sort order, then I start it.
Comments
Post a Comment