Re: How to change the boost of fields in edismx at runtime

2012-11-05 Thread roz dev
Thanks Hoss.

Yes, that approach would work as I can change the query.

Is there a way to extend the Edismax Handler to read a config file at
startup and then use some events like commit to instruct edismax handler to
re-read the config file.

That way, I can ensure that my boost params are just on on Solr Servers'
config files and If I need to change, I would just change the file and wait
for commit to re-read the file.

Any inputs?

-Saroj


On Thu, Nov 1, 2012 at 2:50 PM, Chris Hostetter hossman_luc...@fucit.orgwrote:


 : Then, If I find that results are not of my liking then I would like to
 : change the boost as following
 :
 : - Title - boosted to 2
 : -Keyword - boosted to 10
 :
 : Is there any way to change this boost, at run-time, without having to
 : restart solr with new boosts in edismax?

 edismax field boosts (specified in the qf and pf params) can always be
 specified at runtime -- first and foremost they are query params.

 when you put then in your solrconfig.xml file those are just as defaults
 (or invariants, or appends) of those query params.



 -Hoss



Re: How to change the boost of fields in edismx at runtime

2012-11-01 Thread Chris Hostetter

: Then, If I find that results are not of my liking then I would like to
: change the boost as following
: 
: - Title - boosted to 2
: -Keyword - boosted to 10
: 
: Is there any way to change this boost, at run-time, without having to
: restart solr with new boosts in edismax?

edismax field boosts (specified in the qf and pf params) can always be 
specified at runtime -- first and foremost they are query params.

when you put then in your solrconfig.xml file those are just as defaults 
(or invariants, or appends) of those query params.



-Hoss


Re: How to change the boost of fields in edismx at runtime

2012-10-30 Thread Indika Tantrigoda
Hi Saroj,

You could use the boost function in a FunctionQuery. Something similar to,

_val_:Title^10 and _val_:Keyword^2
_val_:Title^2 and _val_:Keyword^10

See
http://wiki.apache.org/solr/SolrRelevancyFAQ#How_can_I_boost_the_score_of_newer_documentson
how to use the boost function.

Thanks,
Indika

On 31 October 2012 10:48, roz dev rozde...@gmail.com wrote:

 Hi All

 I am wondering if there is any way in which we can change the relative
 boost of different fields in edismax, at the run-time.

 For example, I can define 2 fields in my edismax query

 -Title - boosted to 10
 -Keyword - Boosted to 2


 Then, If I find that results are not of my liking then I would like to
 change the boost as following

 - Title - boosted to 2
 -Keyword - boosted to 10

 Is there any way to change this boost, at run-time, without having to
 restart solr with new boosts in edismax?

 Any thoughts are much appreciated.

 Thanks
 Saroj