You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Aman Tandon <am...@gmail.com> on 2014/04/09 08:30:13 UTC
boost results within 250km
How can i gave the more boost to the results within 250km than others
without using result filtering.
Re: boost results within 250km
Posted by Aman Tandon <am...@gmail.com>.
Thanks Bill, Actually i have to return the distances for every results that
how far it is from the searched location thats why i am calculating the
distance using geodist separately and then using that distance for passing
to fl as well as in boosting for 250km.
*.....&distance=geodist($lat,$lon,latlon)&fl=title,$distance&boost=map($distance,0,250,10,1)*
Thanks
Aman Tandon
On Thu, Apr 10, 2014 at 8:35 AM, Bill Bell <bi...@gmail.com> wrote:
> Just take geodist and use the map function and send to bf or boost
>
> Bill Bell
> Sent from mobile
>
>
> > On Apr 9, 2014, at 8:26 AM, Erick Erickson <er...@gmail.com>
> wrote:
> >
> > Why do you want to do this? This sounds like an XY problem, you're
> > asking how to do something specific without explaining why you care,
> > perhaps there are other ways to do this.
> >
> > Best,
> > Erick
> >
> >> On Tue, Apr 8, 2014 at 11:30 PM, Aman Tandon <am...@gmail.com>
> wrote:
> >> How can i gave the more boost to the results within 250km than others
> >> without using result filtering.
>
Re: boost results within 250km
Posted by Bill Bell <bi...@gmail.com>.
Just take geodist and use the map function and send to bf or boost
Bill Bell
Sent from mobile
> On Apr 9, 2014, at 8:26 AM, Erick Erickson <er...@gmail.com> wrote:
>
> Why do you want to do this? This sounds like an XY problem, you're
> asking how to do something specific without explaining why you care,
> perhaps there are other ways to do this.
>
> Best,
> Erick
>
>> On Tue, Apr 8, 2014 at 11:30 PM, Aman Tandon <am...@gmail.com> wrote:
>> How can i gave the more boost to the results within 250km than others
>> without using result filtering.
Re: boost results within 250km
Posted by Aman Tandon <am...@gmail.com>.
Thanks Erik, the problem was that i was boost the results closer to the
city via geodist, but i also have to boost cities within 250km extra as
well.
i did it by using the map(distance,0,250,10,1) along with boosting cities
via geodist query, problem solved thanks for replying.
On Thu, Apr 10, 2014 at 1:48 AM, Aman Tandon <am...@gmail.com>wrote:
> Thanks Erik, the problem was that i was boost the results closer to the
> city via geodist, but i also have to boost cities within 250km extra as
> well.
>
> i did it by using the map(distance,0,250,10,1) along with boosting cities
> via geodist query, problem solved thanks for replying.
>
>
> On Wed, Apr 9, 2014 at 7:56 PM, Erick Erickson <er...@gmail.com>wrote:
>
>> Why do you want to do this? This sounds like an XY problem, you're
>> asking how to do something specific without explaining why you care,
>> perhaps there are other ways to do this.
>>
>> Best,
>> Erick
>>
>> On Tue, Apr 8, 2014 at 11:30 PM, Aman Tandon <am...@gmail.com>
>> wrote:
>> > How can i gave the more boost to the results within 250km than others
>> > without using result filtering.
>>
>
>
Re: boost results within 250km
Posted by Aman Tandon <am...@gmail.com>.
Thanks Erik, the problem was that i was boost the results closer to the
city via geodist, but i also have to boost cities within 250km extra as
well.
i did it by using the map(distance,0,250,10,1) along with boosting cities
via geodist query, problem solved thanks for replying.
On Wed, Apr 9, 2014 at 7:56 PM, Erick Erickson <er...@gmail.com>wrote:
> Why do you want to do this? This sounds like an XY problem, you're
> asking how to do something specific without explaining why you care,
> perhaps there are other ways to do this.
>
> Best,
> Erick
>
> On Tue, Apr 8, 2014 at 11:30 PM, Aman Tandon <am...@gmail.com>
> wrote:
> > How can i gave the more boost to the results within 250km than others
> > without using result filtering.
>
Re: boost results within 250km
Posted by Erick Erickson <er...@gmail.com>.
Why do you want to do this? This sounds like an XY problem, you're
asking how to do something specific without explaining why you care,
perhaps there are other ways to do this.
Best,
Erick
On Tue, Apr 8, 2014 at 11:30 PM, Aman Tandon <am...@gmail.com> wrote:
> How can i gave the more boost to the results within 250km than others
> without using result filtering.