Hi guys: I am going to build up a audio search based on solr. I worked out a prototype like :
schema.xml: <field name="id" type="string" indexed="true" stored="true" required="true" /> <field name="artist" type="text" indexed="true" stored="true"/> <field name="album" type="text" indexed="true" stored="true"/> <field name="mp3_name" type="text" indexed="true" stored="true"/> <field name="links" type="sint" indexed="true" stored="true"/> then import the data from mysql and add it to the index in XML format. My problems are : 1 support a query language, "songname + artist " or "artist + album" or " artist + album + songname", some guys would like to query like "because of you ne-yo". So I need to cut words in the proper way. How to modify the way of cutting words in solr ( recognize the song name or album or artist) 2 Revelance Sorting, in the matching result, the records whose album or artist is the same as the query should be put ahead. I find solr remove the stop words and cut words into "because", "you", then the results like "because I love you" , "because you loved me" are in the front. Another bad case is some songs that lack artist information wghile get the riht song name are sorting in the front. like Results:1.id:602821artist: album: mp3:because of youlinks:1 2.id:612525artist: album: mp3:because of youlinks:1 The principle is to match the total information as completely as possible and the records which have more information should put ahead. So how can I add more weigh on term of album or artist and modify the strategy of sorting. I am new in solr and really need help. Regards, Fei