> I just want to confirm, (as I'm not quiet familiar with the > function query syntax) will the following query be alright > to search "car power adaptor", so that the entry with > highest idRank be displayed first? > http://localhost:8983/solr/select?indent=on&q=car%20power%20adaptor&fl=id,score,name&_val_:idRank
I haven't used it but _val_ hook should be the part of q parameter. However if you are using solr3.1 or trunk I suggest you to use sort by function instead. http://wiki.apache.org/solr/FunctionQuery#Sort_By_Function > Also, will I need to set the value of idRank for ALL items? > Right now I have only set it for those items which are being > returned by this query. Not necessary to set value for ALL items. You can define default value (defVal="0") for missing items. <fieldType name="file" keyField="urun_id" defVal="0" stored="false" indexed="false" class="solr.ExternalFileField" valType="pfloat"/>