Besides changing the scoring algorithm, what about "Field Collapsing" - http://wiki.apache.org/solr/FieldCollapsing - to collapse the results from same website url?
Yunfei On Mon, Oct 29, 2012 at 12:43 AM, Alexander Aristov < alexander.aris...@gmail.com> wrote: > Hi everybody, > > I have a question about scoring calculation algorithms and approaches. > > Lets say I have 10 documents. 8 of the them come from one web site (I have > a field in schema with URL) and the other 2 from other different web sites. > So for this example I have 3 web sites. > > For some queries those 8 documents have better terms matching and they > appear at the top of results. It makes that 8 docs from one source come > first and the other two come next and the last. > > I want to maybe artificially improve score of those 2 docs and put them > atop. I don't want that they necessarily go first but if they come in the > middle of the result set it would be perfect. > > One of the ideas is to reduce score for docs in the result set from one > site so that if it contains too many docs from one source total scoring of > each those docs would be reduced proportionally. > > Important thing is that I don't want to reduce doc score permanently. Only > at query time. Maybe some functional queries can help me? > > How can I do this or maybe there are other ideas. > > Best Regards > Alexander Aristov >