Skip to content

Commit

Permalink
Merge pull request #21 from okybaca/boostdomain
Browse files Browse the repository at this point in the history
added a TLD boost query and a solr query reference link
  • Loading branch information
okybaca authored Nov 13, 2024
2 parents 523a180 + 097b213 commit e3807b2
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions docs/operation/ranking.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit e3807b2

Please sign in to comment.