Hi Otis, There is no error in console nor in log file. I'm using Solr-4.0. The External file name is external_rankingField.txt and exist is directory "C:\solr-4.0.0\example\solr\collection1\data\external_rankingField.txt"
External file should work as well because when I issue query "sort=sqrt(rankingField)+desc" or "sort=sqrt(rankingField)+asc" or "sort=sqrt(rankingField)+desc" Things will change accordingly. By the way, I first try external field according document here http://lucidworks.lucidimagination.com/display/solr/Working+with+External+Files+and+Processes "Format of the External File The file itself is located in Solr's index directory, which by default is $SOLR_HOME/data/index. The name of the file should beexternal_*fieldname* or external_*fieldname*.*. For the example above, then, the file could be named external_entryRankFile orexternal_entryRankFile.txt. " But actually the external file should put in $SOLR_HOME/data/ Floyd 2012/11/20 Otis Gospodnetic <otis.gospodne...@gmail.com> > Hi, > > Do you see any errors? > Which version of Solr? > What does debugQuery=true say? > Are you sure your file with ranks is being used? (remove it, put some junk > in it, see if that gives an error) > > Otis > -- > Performance Monitoring - http://sematext.com/spm/index.html > Search Analytics - http://sematext.com/search-analytics/index.html > > > > > On Mon, Nov 19, 2012 at 10:16 PM, Floyd Wu <floyd...@gmail.com> wrote: > > > Thanks Otis, > > > > But the sort=product(score, rankingField) is not working in my test. What > > probably wrong? > > > > Floyd > > > > > > 2012/11/20 Otis Gospodnetic <otis.gospodne...@gmail.com> > > > > > Hi, > > > > > > 3. yes, you can sort by function - > > > http://search-lucene.com/?q=solr+sort+by+function > > > 2. this will sort by score only when there is a tie in ranking (two > docs > > > have the same rank value) > > > 1. the reverse of 2. > > > > > > Otis > > > -- > > > Performance Monitoring - http://sematext.com/spm/index.html > > > Search Analytics - http://sematext.com/search-analytics/index.html > > > > > > > > > > > > > > > On Mon, Nov 19, 2012 at 9:40 PM, Floyd Wu <floyd...@gmail.com> wrote: > > > > > > > Hi there, > > > > > > > > I have a field(which is externalFileField, called rankingField) and > > that > > > > value(type=float) is calculated by client app. > > > > > > > > For the solr original scoring model, affect boost value will result > > > > different ranking. So I think product(score,rankingField) may > > equivalent > > > to > > > > solr scoring model. > > > > > > > > What I curious is which will be better in practice and the different > > > > meanings on these three solutions? > > > > > > > > 1. sort=score+desc,ranking+desc > > > > 2. sort=ranking+desc,score+desc > > > > 3. sort=product(score,ranking) -->is this possible? > > > > > > > > I'd like to hear your thoughts. > > > > > > > > Many thanks > > > > > > > > Floyd > > > > > > > > > >