How to boost a querystring at query time

2011-07-05 Thread Romi
i want to enable boosting for query and search results. My dismax
queryHandlerConfiguration is as:

*requestHandler name=dismax class=solr.DisMaxRequestHandler   
lst name=defaults
 str name=echoParamsexplicit/str
  str name=defTypedismax/str 
 float name=tie0.01/float
 str name=qf
text^0.5 name^1.0 description^1.5 
 /str
str name=fl
UID_PK,name,price,description,score
 /str
 str name=mm
2lt;-1 5lt;-2 6lt;90%
 /str
 int name=ps100/int
 str name=q.alt*:*/str
 str name=f.name.hl.fragsize0/str
str name=f.name.hl.alternateFieldname/str
 str name=f.text.hl.fragmenterregex/str
/lst
  /requestHandler*


When querystring is q=gold^2.0 ring(boost gold) and qt=standard i got the
results for gold ring and when qt=dismax i got no result why so please
explain




-
Thanks  Regards
Romi
--
View this message in context: 
http://lucene.472066.n3.nabble.com/How-to-boost-a-querystring-at-query-time-tp3139800p3139800.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: How to boost a querystring at query time

2011-07-05 Thread Ahmet Arslan
 When querystring is q=gold^2.0 ring(boost gold) and
 qt=standard i got the
 results for gold ring and when qt=dismax i got no result
 why so please
 explain

q=gold^2.0 ring(boost gold)defType=dismax would return a document that 
contains exactly gold^2.0 ring(boost gold) in it.

dismax is designed to work with simple keyword queries. You can use only three 
special characters: + - 

Rest of the characters, : [ ] ^ ~ etc, don't work. i.e. they are escaped.

Please see http://www.lucidimagination.com/blog/2010/05/23/whats-a-dismax/


Re: How to boost a querystring at query time

2011-07-05 Thread Romi
than what should i do to get the required result. ie. if i want to boost gold
than which querytype i should use.

-
Thanks  Regards
Romi
--
View this message in context: 
http://lucene.472066.n3.nabble.com/How-to-boost-a-querystring-at-query-time-tp3139800p3140703.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: How to boost a querystring at query time

2011-07-05 Thread Ahmet Arslan
 than what should i do to get the
 required result. ie. if i want to boost gold
 than which querytype i should use.

If you want to boost the keyword 'gold', you can use bq parameter.

defType=dismaxbq=someField:gold^100

See the other parameters : 
http://wiki.apache.org/solr/DisMaxQParserPlugin#bq_.28Boost_Query.29