Johnny What you are going to want to do is boost the artist field with respect to the others, for example using edismax my 'qf' parameter is:
number^5 title^3 default so hits in the number field get a five-fold boost and hits in the title field get a three-fold boost. In your case you might want to start with: artist^5 album^3 song Getting these parameters right will take a little work, and I would suggest you build a set of searches with known results so you can quickly check the effect of any tweaks you do. Useful reading would include: http://wiki.apache.org/solr/SolrRelevancyFAQ http://wiki.apache.org/solr/SolrRelevancyCookbook http://www.lucidimagination.com/blog/2011/12/14/options-to-tune-document’s-relevance-in-solr/ http://www.lucidimagination.com/blog/2011/03/10/solr-relevancy-function-queries/ Cheers François On Jan 15, 2012, at 1:19 AM, Johnny Marnell wrote: > hi all, > > short of it: i want "queen bohemian rhapsody" to return that song named > "Bohemian Rhapsody" by the artist named "Queen", rather than songs with > titles like "Bohemian Rhapsody (Queen Cover)". > > i'm indexing a catalog of music with these types of docs and their fields: > > artist (artistName), album (albumName, artistName), and song (songName, > albumName, artistName). > > the client is one search box, and i'm having trouble handling searching > over multiple multifields and weighting their exactness. when a user types > "queen", i want the artist Queen to be the first hit, and then albums & > songs titled "queen". > > if "queen bohemian rhapsody" is searched, i want to return that song, but > instead i'm getting songs like "Bohemian Rhapsody (Queen Cover)" by "Stupid > Queen Tribute Band" because all three terms are in the songName, i'm > guessing. what kind of query do i need? > > i'm indexing all of these fields as multi-fields with ngram, shingle (i > think this might be really useful for my use case?), keyword, and standard. > that appears to be working, but i'm not sure how to combine all of this > together over multiple multi-fields. > > if anyone has good links to broadly summarized use cases of Indexing and > Querying, that would be great - i would think this would be a common > situation but i can't find any good resources on the web. and i'm having > trouble understanding scoring and boosting. > > this was my first post, hope i did it right, thanks so much! > > -j