thanks gora I got that.... one more thing what actually I have done is made document consisting of fields:
{ "autosug":"galaxy", "query_id":1414, "pop":168, "initial_boost":"galaxy" "_version_":1435669695565922305, "score":1.8908522} this inital_boost is basically copy field of autosug but saved using different analysers taking whole sentence as single token and generating edge ngrams so that what I search on this field only term matching from first will match...and for any other infix term match I have autosug field.... so now what I want from this is to show the documents returned with initial_boost first and then the documents with autosug field sorted with pop field respectively (separately) and return the result... now from your suggestion I could do this using sort on multiple fields by separating them by commas, as described under http://wiki.apache.org/solr/CommonQueryParameters#sort but for that I would require 1 field having value greater(all equal say 2) for initial_boost field and smaller(all same say 1) for autosug field how can I do this? or is there some better solution.. thanks regards Rohan On Wed, May 22, 2013 at 6:39 PM, Gora Mohanty <g...@mimirtech.com> wrote: > On 22 May 2013 18:26, Rohan Thakur <rohan.i...@gmail.com> wrote: > > hi all > > > > I wanted to know is there a way I can sort the my documents based on 3 > > fields > > I have fields like pop(which is basically frequency of the term searched > > history) and autosug(auto suggested words) and initial_boost(copy field > of > > autosug such that only match with initial term match having > > whole sentence saved as one token) > [...] > > You seem to be confusing boosting with sorting. If you > sort the results, the boosts are irrelevant. > > You can sort on multiple fields by separating them by > commas, as described under > http://wiki.apache.org/solr/CommonQueryParameters#sort > > Regards, > Gora >