Would boosting (or sorting) by geodist work? See: http://wiki.apache.org/solr/SpatialSearch#geodist_-_The_distance_function
Which you can use for a "boost query" as well as sorting. Of course you need to get the lat/lon of your users to make this work, but there are a number of services that can get you, say, the city center in lat/lon. Best Erick On Wed, Sep 19, 2012 at 6:43 AM, Tom Mortimer <tom.m.f...@gmail.com> wrote: > I'm still not sure I understand what it is you're trying to do. Index-time or > query-time boosts would probably be neater and more predictable than multiple > field instances, though. > > http://wiki.apache.org/solr/UpdateXmlMessages#Optional_attributes_for_.22field.22 > http://wiki.apache.org/solr/SolrRelevancyFAQ#How_can_I_change_the_score_of_a_document_based_on_the_.2Avalue.2A_of_a_field_.28say.2C_.22popularity.22.29 > > Tom > > > On 19 Sep 2012, at 02:49, deniz <denizdurmu...@gmail.com> wrote: > >> Hello Tom >> >> Thank you for your link, but after overviewing it, I dont think it will >> help... In my case, it will be dynamic, rather than setting a config file >> and as you think of a big country like Russia or China, i will need to add >> all cities manually to the elevator.xml file, and also the boosted users, >> which is not something i desire... >> >> it seems like duplicating the values in the location field is the best (at >> least quickest) solution for this case.. >> >> >> >> ----- >> Zeki ama calismiyor... Calissa yapar... >> -- >> View this message in context: >> http://lucene.472066.n3.nabble.com/Personalized-Boosting-tp4008495p4008783.html >> Sent from the Solr - User mailing list archive at Nabble.com. >