Hi guys,

I have following boosting query:
b=scale(popularity,0,1)

So far I have tried following queries, and got following results:

   1.
   
http://localhost:8080/solr/select?q={!boost%20$b=scale(popularity,0,1)%20v=$qq%20defType=dismax}&qf=title+tags&fl=*,score&qq=s<http://localhost:8080/solr/select?q={!boost%20$b=scale(popularity,0,1)%20v=$qq%20defType=dismax}&qf=title+tags&fl=*,score&qq=struggle>olr,
   This returns results which scores are not modified by boosting query, I
   checked that using debug mode.
   2.
   
http://localhost:8080/solr/select?q=product(scale(popularity,0,1),%20query($qq))&qq={!dismax%20qf=title+tags}<http://localhost:8080/solr/select?q=product(scale(popularity,0,1),%20query($qq))&qq={!dismax%20qf=title+tags}suka>solr.
   No results at all.
   3.
   
http://localhost:8080/solr/select?q=product(scale(popularity,0,1),%20query({!dismax%20qf='title%20tags'%20v='suka'})).
   This gave me an error "Cannot parse
   'product(scale(popularity,0,1),query({!dismax qf='title tags' v='solr'}))':
   Encountered " <RANGEEX_GOOP>"tags\'"" at line 1, column 56. Was expecting:
   "}" ..." Even though queries 2 and 3 are pretty much equivalent to the ones
   shown here http://wiki.apache.org/solr/FunctionQuery#query.

The Solr version that I am using is 1.4.0. So, has anyone ever tried to use
boosting queries with DisMax query parser and maybe could give a working
examples for my case? Or maybe I am doing something wrong here?

Thanks!

Reply via email to