: Is it possible to let user's define their position in search when location : is queried? Let's say that I am UserA and when you make a search with : Moscow, my default ranking is 258. By clicking a button, something like : "Boost Me!", I would like to see UserA as the first user when search is done : by Moscow query.
please explain your usecase more -- it's not clear what you mean by a user saying "Boost Me!" ... do the documents in your index model your users? ie: does each doc represent one user? .. Let's assume for now that's what you ment -- if so, what should happen if multiple "users" ask you to boost them for the same location value? is the fact that you are refering to a field named "location" significant? should the boost apply to other searches of locations that are geographically close by? all of these kinds of things have a significant impact on the possible solutions for your goal, since we don't really understand your goal. Assuming you don't really want geo-proximity boosting, and you just want an easy way to say "document X should be considered a more important match for word Z" then i would suggest using multiple fields and use query time boosts. ie: put Z in both your location field and in osme other boosted_location field and when you get a query, search across both of them, with a higher boost on booted_location, something like.. defType=dismax & q=Z & qf=location+boosted_location^100 -Hoss