On Wed, Aug 31, 2011 at 2:51 PM, Johan Svensson <[email protected]> wrote: > Thank you! This looks interesting. However, I wonder if it really can solve > this problem. No part of the search query is by necessary means part of the > domain name. Let's say for example that we search for "foobar". On > www.example.com/page42.html this word is found, as well for lots of pages > with different names at blog.example.com/. Can you apply boosting magic for > the hit at www.example.com although the search term is not a part of the > url?
Presumably, you know the domain name from which the document originates at indexing time. If so, you can use index-time boosting: http://wiki.apache.org/solr/SolrRelevancyFAQ#index-time_boosts E.g., this can be used to boost all documents from www.example.com over those from blog.example.com. Regards, Gora

