I'm guessing that you'd be best served by changing your
model a bit. It looks like you are somehow doing searches
that center on the airport and arrange businesses of various
types based on how far they are from the airport. But you're
collecting all the businesses in one solr document.

It would work much better, I think, to index each business
along with it's location see:
http://wiki.apache.org/solr/SpatialSearch

Now, assuming you're somehow expressing the concept
"find me businesses around airport X", you do a standard
search and boost by the distance between the airport and
the businesses. You can use a bbox filter query to keep
from calculating very many distances (also on the page
I linked to).

FWIW,
Erick


On Fri, Aug 30, 2013 at 2:47 PM, danielitos85 <danydany....@gmail.com>wrote:

> Ok, agree.
> I mean that I want to set a boost to each review/description (multifield)
> of
> the Places (multifield), and this boost is the corrispective value of the
> distance beetween the place and the particular kind of place that I have as
> document.
>
> Is it clear?
>
> I Try to explain again the situation:
>
>  - my document is a particular kind of Place (for example airport)
>  - my fields are all the text (review and description) of the places around
> the airport having a distance < 10 km.
>
> Now if I search for "pizza" solr return me the airport where there are a
> lot
> of terms "pizza" into review/description doesn't consider the distance. So
> I
> want to set a boost at each review/description based on the value of
> distance.
>
> Thanks in advance
>
>
>
> --
> View this message in context:
> http://lucene.472066.n3.nabble.com/Change-the-score-of-a-document-based-on-the-value-of-a-multifield-tp4087503p4087563.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>

Reply via email to