The main disadvantage of index-time boosting is that you must reindex your corpus entirely if you want to alter the boost factors. And there's no very good way to anticipate what boost factors will give you the results you want....
I wonder if you could cheat and do some basic string processing on the query and add your boosts? That's be tricky unless you have very predictable strings.... Best Erick On Tue, Oct 19, 2010 at 10:33 AM, Andrea Gazzarini < andrea.gazzar...@atcult.it> wrote: > Y-E-A-H! I think it's so! > Markus, what are disadvantages of this boosting strategy? > > Thanks a lot > Andrea > > Il 19/10/2010 16:25, Markus Jelsma ha scritto: > >> Index-time boosting maybe? >> >> http://wiki.apache.org/solr/UpdateXmlMessages#Optional_attributes_for_.22field.22 >> >> >> On Tuesday, October 19, 2010 04:23:46 pm Andrea Gazzarini wrote: >> >>> Hi Ken, >>> thanks for your response...unfortunately it doesn't solve my problem. >>> >>> I cannot chnage the client behaviour so the query must be a query and not >>> only the query terms. In this scenario, It would be great, for example, >>> if >>> I could declare the boost in the schema field definition....but I think >>> it's not possible isn't it? >>> >>> Regards >>> Andrea >>> _____ >>> >>> From: Ken Stanley [mailto:doh...@gmail.com] >>> To: solr-user@lucene.apache.org >>> Sent: Tue, 19 Oct 2010 15:05:31 +0200 >>> Subject: **SPAM** Re: boosting injection >>> >>> Andrea, >>> >>> Using the SOLR dismax query handler, you could set up queries like this >>> to boost on fields of your choice. Basically, the q parameter would be >>> the >>> query terms (without the field definitions, and a qf (Query Fields) >>> parameter that you use to define your boost(s): >>> http://wiki.apache.org/solr/DisMaxQParserPlugin. A non-SOLR >>> alternative >>> would be to parse the query in whatever application is sending the >>> queries to the SOLR instance to make the necessary transformations. >>> >>> Regards, >>> >>> Ken >>> >>> It looked like something resembling white marble, which was >>> probably what it was: something resembling white marble. >>> -- Douglas Adams, "The Hitchhikers Guide to the Galaxy" >>> >>> >>> On Tue, Oct 19, 2010 at 8:48 AM, Andrea Gazzarini< >>> >>> andrea.gazzar...@atcult.it> wrote: >>> > Hi all, >>> > >>> > I have a client that is sending this query >>> > >>> > q=title:history AND author:joyce >>> > >>> > is it possible to "transform" at runtime this query in this way: >>> > >>> > q=title:history^10 AND author:joyce^5 >>> > >>> > ? >>> > >>> > Best regards, >>> > Andrea >>> >>