From 097b213ba474398ce31c42f3963239e7124a8148 Mon Sep 17 00:00:00 2001 From: okybaca Date: Wed, 13 Nov 2024 11:17:48 +0100 Subject: [PATCH] added a TLD boost query and a solr query reference link --- docs/operation/ranking.md | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/docs/operation/ranking.md b/docs/operation/ranking.md index a799e71..18e00d9 100644 --- a/docs/operation/ranking.md +++ b/docs/operation/ranking.md @@ -80,8 +80,11 @@ to sort by last_modified and bring the most current documents to the top, `div(add(references_internal_i,product(references_external_i,references_exthosts_i)),add(clickdepth_i,1))` to consider documents with many external references as more important but -also count the clickdepth. Just try to do your own experiments using the -attributes from the index schema. +also count the clickdepth. + + +Just try to do your own experiments using the attributes from the index +schema. ### Boost Query @@ -99,6 +102,15 @@ documents which move forward or backward in the result list independently from the searched word. +If you want, for example, to prefer documents from a particular TLD (_.au_ +in this example), use boost query: + +`host_s = query => *.au^50` + +To understand the solr queries, see [Solr Query +Guide](https://solr.apache.org/guide/solr/latest/query-guide/query-syntax-and-parsers.html) +or a [simple tutorial](https://solrtutorial.com/solr-query-syntax.html). + ### Filter Query This is not actually a ranking mechanism, but certain use cases require that