: > When a person searches for keywords eg value1 value2 value3 we want to : > apply boosting so that a document is boosted according to which of the : > keywords it has. : > eg of url : q=value1^4.0 OR value2^2.0 OR value3 ... : > I have a requesthandler set up to just search on our Keyword column which ... : UPDATE: : I have managed to get this syntax working : select/?qt=KeywordSearch&q=greenpoint&bq=Keyword:work^1.5&bq=Keyword:Pigalle^1.2 : But this just seems quite cumbersome having to specify a bq each time. Also : I cannot get more than one q= to work.
...you haven't told us anything about how your "KeywordSearch" handler is declared, but presumably if the "bq" param is working for you you are using either the dismax handler or the dismax QParser. dismax doesn't support the "^2.3" type boost syntax in the query param -- it supports it in the field param. the theory behind dismax is that the "user" should just provide "words", while the "admin" who configures it should know that certain *fields* should be boosted (not words) if you have an external system that already knows that valu1 should get a boost of 4.0, and value2 should get a boost of 2.0 then there is really no reason to be using dismax -- just use the "lucene" QParser (which is the default for SearchHandler) and set the default field to be your keyword field... /select? df=Keyword & q=value1^4.0 value2^2.0 value3 -Hoss