Questions tagged [solr-boost]

Boosting is the art of increasing the relevance of search result based on alternative indices/properties. It is the opposite of penalizing.

124 questions
1
vote
1 answer

Struggling with a solr query and relevance

I have a problem with boosting when using Solr. We recently switched from Lucene to Solr. We have 4 (primary) search fields that we search against: essence, keywords, allSearchable, and quality; where, for each document in the index, essence…
Tucker
  • 81
  • 6
1
vote
1 answer

Boost solr items within a range: is facet search an option?

I want to have a long listing of items in Solr with a very specific order. I have no experience with Solr facets: are they a good way to group results in a date-range where inside the range I can boost various items a bit? Ordering principle All…
Jurian Sluiman
  • 13,498
  • 3
  • 67
  • 99
1
vote
1 answer

solr : how to boost query term after tokenizer

If the query word is "ABCD", then after being tokenized it is "A" "BC" "D". I want to boost term "BC", so the query word is like this: A BC^10 D" and phrase query "ABCD" All query words users typing in will be processed like that automaticly so that…
0
votes
1 answer

SolrNet: What is the correct way to specify Boost values at index time?

I am going to index documents that will have Boost values from 1 to 10. One way is to simply use AddWithBoost(doc , boostvalue) . But is this the correct way? Do I need to translate the scale (1 - 10) to some other range in order to make sure that…
Raza
  • 139
  • 3
  • 13
0
votes
1 answer

Apache Solr: Why does the boost parameter in eDisMax result in squared score boosting?

I am using Apache Solr for my search functionality and I have encountered an unexpected behavior with the boost parameter in the eDisMax query parser. When I try to boost the score of the documents matching a certain query, the scores are getting…
Sumit Raj
  • 11
  • 2
0
votes
1 answer

How to deboost multiple fields in Solr using BQ argument

I am trying to deboost certain documents based on an attribute called department code. The following works: bq=(*:* -department_code:"others")^10 However, when I want to add another department to the deboost, I try the following query and it fails…
Aizaz
  • 39
  • 7
0
votes
0 answers

Boost score according to the search string + array length of the field in elasticsearch

I am using elasticsearch and python for text searches in my application. I have a use case where, I have to boost a score of the result without decreasing the result count for a field which consists of array, array could be empty or could consists…
young_minds1
  • 1,181
  • 3
  • 10
  • 25
0
votes
1 answer

Elasticsearch - boost some documents on top if sorted on a field value

This is my current elastic query. Currently its sorted based on review_rating. I want some products to be boosted on top of it. Is there any way to update the script function to update the review_rating value so that product_id "abc-xyz" and…
0
votes
0 answers

Is there a way to boost based on value of an index property in Hybris solr?

We have a requirement wherein we need to make boosting for a field dynamic. Let's say that we have an indexed property foo, we need to perform a mathematical calculation on foo to determine its boost value which would be different for every…
0
votes
2 answers

C# Solr boost not being applied to generated query

I'm using Solr 7.5 with Sitecore 9.2. I have some complex code that generates a search query, which I'm now trying to apply boosting to to prioritize page items over media assets (the relevant lines begin at isAssetPredicate.... public override…
Erica Stockwell-Alpert
  • 4,624
  • 10
  • 63
  • 130
0
votes
1 answer

How does Elasticsearch aggregate or weight scores from two sub queries ("bool query" and "decay function")

I have a complicated Elasticsearch query like the following example. This query has two sub queries: a weighted bool query and a decay function. I am trying to understand how Elasticsearch aggregrates the scores from each sub queries. If I run the…
Jun Wang
  • 879
  • 8
  • 10
0
votes
1 answer

Customized Boosting in Solr

I'm using Solr in a search app, where data has been divided in different types but in same collection. Each document in collection has d_type field which defines the type of data. Example Consider I have 5 type of…
Tayyab Hussain
  • 1,658
  • 1
  • 18
  • 21
0
votes
2 answers

Boost solr results with one word match from multiValued

I have solr schema with certain fields:
striker
  • 1,253
  • 3
  • 15
  • 25
0
votes
1 answer

Solr - How to index and boost results using several popularity fields?

Here is a sample document - { "id": "AIRPORT-LAS", "RANK": 80.0, "TYPE": "AIRPORT", "COUNTRY_NAME": "United States", "COUNTRY_CODE": "US", "ISO_COUNTRY_CODE": "US", "LATITUDE": "36.08047103880001", "LONGITUDE":…
jagamot
  • 5,348
  • 18
  • 59
  • 96
0
votes
1 answer

SOLR boost query order is wrong

I want to retrieve some documents from SOLR and pass boosts to the field's so that they are returned in the order I request them (respectively the web request requests them). Therefore I add boosts to the desired ids: q=myfield:"9125129"^10 OR …
luhu
  • 361
  • 3
  • 12
1 2 3
8 9