Re: Edismax sorting help

2011-06-09 Thread Denis Kuzmenok
Your solution seems to work fine, not perfect, but much better then mine :) Thanks! >> If i do query like "Samsung" i want to see prior most relevant results >> with  isflag:true and bigger popularity, but if i do query like "Nokia >> 6500"  and  there is isflag:false, then it should be higher

Re: Edismax sorting help

2011-06-09 Thread Yonik Seeley
2011/6/9 Denis Kuzmenok : > Hi, everyone. > > I have fields: > text fields: name, title, text > boolean field: isflag (true / false) > int field: popularity (0 to 9) > > Now i do query: > defType=edismax > start=0 > rows=20 > fl=id,name > q=lg optimus > fq= > qf=name^3 title text^0.3 > sort=sco

Edismax sorting help

2011-06-09 Thread Denis Kuzmenok
Hi, everyone. I have fields: text fields: name, title, text boolean field: isflag (true / false) int field: popularity (0 to 9) Now i do query: defType=edismax start=0 rows=20 fl=id,name q=lg optimus fq= qf=name^3 title text^0.3 sort=score desc pf=name bf=isflag sqrt(popularity) mm=100% debug