Re: boost functions

2015-09-23 Thread Doug Turnbull
I believe so, though I would test it out. You could try it out in http://splainer.io and confirm the scores are identical Cheers -Doug On Wed, Sep 23, 2015 at 12:10 PM, Vincenzo D'Amore <v.dam...@gmail.com> wrote: > Hi, > > I have found in my code few boost functions like this

boost functions

2015-09-23 Thread Vincenzo D'Amore
Hi, I have found in my code few boost functions like this one: bf=sum(product(max(field_a,1),10),product(max(field_b,1),100)) The question is, may I split this in two: bf=product(max(field_a,1),10) bf=product(sub(has_image,1),100) being sure to have in return always the same results of first

How do I use multiple boost functions?

2014-06-30 Thread Bhoomit Vasani
Hello, I want to boost using multiple functions. e.g. {!boost b=recip(geodist(destination,1.293841,103.846487),1,1000,1000) b=if(exists(query({!v=$b1})),100,0) } when I use above query Solr only considers second function. -- -- Thanks Regards, Bhoomit Vasani | SE @ Mygola WE are LIVE

Re: How do I use multiple boost functions?

2014-06-30 Thread Jack Krupansky
parameters for each boost. See: https://cwiki.apache.org/confluence/display/solr/The+Extended+DisMax+Query+Parser -- Jack Krupansky -Original Message- From: Bhoomit Vasani Sent: Monday, June 30, 2014 7:30 AM To: solr-user@lucene.apache.org Subject: How do I use multiple boost functions

Re: How do I use multiple boost functions?

2014-06-30 Thread Ahmet Arslan
Hi, Use edismax query parser. boost parameter can take multiple values. boost=recip(geodist(destination,1.293841,103.846487),1,1000,1000) boost=if(exists(query({!v=$b1})),100,0) On Monday, June 30, 2014 2:30 PM, Bhoomit Vasani bhoomit.2...@gmail.com wrote: Hello, I want to boost using

Re: How do I use multiple boost functions?

2014-06-30 Thread Bhoomit Vasani
Thanks, I tried this but finally bf(additive boost) param worked well for me. Thanks for the help :) On Mon, Jun 30, 2014 at 5:14 PM, Ahmet Arslan iori...@yahoo.com.invalid wrote: Hi, Use edismax query parser. boost parameter can take multiple values.

Re: How do I use multiple boost functions?

2014-06-30 Thread Bhoomit Vasani
Krupansky -Original Message- From: Bhoomit Vasani Sent: Monday, June 30, 2014 7:30 AM To: solr-user@lucene.apache.org Subject: How do I use multiple boost functions? Hello, I want to boost using multiple functions. e.g. {!boost b=recip(geodist(destination,1.293841,103.846487

Re: Caching Solr boost functions?

2014-02-20 Thread Chris Hostetter
: I'd like to tell Solr to cache those boost queries for the life of the : Searcher so they don't get recomputed every time. Is there any way to do : that out of the box? if the functions never change, you could just index the computed value up front and save cycles at query time -- but that's

Re: Caching Solr boost functions?

2014-02-19 Thread Jason Hellman
to solve your needs. Jason On Feb 18, 2014, at 11:32 AM, Gregg Donovan gregg...@gmail.com wrote: We're testing out a new handler that uses edismax with three different boost functions. One has a random() function in it, so is not very cacheable, but the other two boost functions do not change

Caching Solr boost functions?

2014-02-18 Thread Gregg Donovan
We're testing out a new handler that uses edismax with three different boost functions. One has a random() function in it, so is not very cacheable, but the other two boost functions do not change from query to query. I'd like to tell Solr to cache those boost queries for the life of the Searcher

Re: Facet sorting by boost functions

2009-07-26 Thread Shalin Shekhar Mangar
On Sun, Jul 26, 2009 at 3:51 AM, Michael Lugassy mlu...@gmail.com wrote: I'm using something along ?q=_val_:product(field1,0.5) and was wondering whether I could facet with category_id so that I get the single best document (product) for each category_id (not intrested in more than 5 of the

Re: Facet sorting by boost functions

2009-07-26 Thread Michael Lugassy
intresting. will that patch work in 1.4? On Sun, Jul 26, 2009 at 9:56 AM, Shalin Shekhar Mangarshalinman...@gmail.com wrote: On Sun, Jul 26, 2009 at 3:51 AM, Michael Lugassy mlu...@gmail.com wrote: I'm using something along ?q=_val_:product(field1,0.5) and was wondering whether I could facet

Re: Facet sorting by boost functions

2009-07-26 Thread Michael Lugassy
apparently it does. what a great contriibution! got it to work with 1.4-dev. hopefully it will get into the stable release. On Sun, Jul 26, 2009 at 4:39 PM, Michael Lugassymlu...@gmail.com wrote: intresting. will that patch work in 1.4? On Sun, Jul 26, 2009 at 9:56 AM, Shalin Shekhar

Facet sorting by boost functions

2009-07-25 Thread Michael Lugassy
I'm using something along ?q=_val_:product(field1,0.5) and was wondering whether I could facet with category_id so that I get the single best document (product) for each category_id (not intrested in more than 5 of the best products in each of the highest-boosted category). Thanks!

Query Boost Functions

2009-05-18 Thread Yao Ge
single and double quote around the field name but didn't help. Can field name contain hyphen in boot functions? How to do it? If not, where do I find the field name special character restrictions? -Yao -- View this message in context: http://www.nabble.com/Query-Boost-Functions

Re: Query Boost Functions

2009-05-18 Thread Koji Sekiguchi
Yao Ge wrote: I have a field named last-modified that I like to use in bf (Boot Functions) parameter: recip(rord(last-modified),1,1000,1000) in DisMaxRequestHander. However the Solr query parser complain about the syntax of the formula. I think it is related with hyphen in the field name. I have

Re: Query Boost Functions

2009-05-18 Thread Yonik Seeley
On Mon, May 18, 2009 at 11:12 AM, Koji Sekiguchi k...@r.email.ne.jp wrote: Yao Ge wrote: I have a field named last-modified that I like to use in bf (Boot Functions) parameter: recip(rord(last-modified),1,1000,1000) in DisMaxRequestHander. However the Solr query parser complain about the

MoreLikeThis and boost functions

2008-12-06 Thread Jérôme Etévé
Hi everyone, I'm wondering if the MoreLikeThis handler takes the boost function parameter into account for the scoring (hence the sorting I guess) of the similar documents it finds. Thanks for your help ! Jerome. -- Jerome Eteve. Chat with me live at http://www.eteve.net [EMAIL PROTECTED]

Using request parameters in dismax boost functions

2007-06-04 Thread Tom Hill
Hi - Perhaps I'm missing something obvious, but it there a way to get values from the user's request as arguments to boost functions in dismax? I'm thinking about distance based weighting for search results, which requires the user's x,y. Tom

Document freshness and Boost Functions

2007-01-17 Thread Luis Neves
Hello, Reading the javadocs from the DisMaxRequestHandler I see that is possible to use Boost Functions to influence the score. How would that work in order to improve the score of recent documents? (I have a timestamp field in the schema)... I'm assuming it's possible (right?), but I can't

Re: Document freshness and Boost Functions

2007-01-17 Thread Bertrand Delacretaz
On 1/17/07, Luis Neves [EMAIL PROTECTED] wrote: ...I see that is possible to use Boost Functions to influence the score. How would that work in order to improve the score of recent documents? (I have a timestamp field in the schema)... I've been using expressions like these in boolean queries

Re: Document freshness and Boost Functions

2007-01-17 Thread Chris Hostetter
: Boost Functions to influence the score. How would that work in order to : improve the score of recent documents? (I have a timestamp field in the : I've been using expressions like these in boolean queries, based on a : broadcast_date field: : : _val_:linear(recip(rord(broadcast_date