Boosting is the art of increasing the relevance of search result based on alternative indices/properties. It is the opposite of penalizing.
Questions tagged [solr-boost]
124 questions
27
votes
1 answer
SOLR exact match boost over text containing the exact match
I could not find a better title, I hope to change it later if possible upon your eventual sugestions.
My problem:
I got a database with music artists. These look like this: "dr. dre feat. akon", "eminem & dr. dre", "dr. dre feat. ll cool j", "dr.…

BogdanM
- 625
- 1
- 6
- 10
15
votes
2 answers
Difference between Weight and boost in Elasticsearch
I read about boosting in Elasticsearch. We can apply boosting at index or query time. Index time boosting is sort of static boosting and not suggested. Query time boosting is dynamic in nature. Query time boosting is good and preferred approach.
We…

Abhijit Bashetti
- 8,518
- 7
- 35
- 47
15
votes
3 answers
Boost Solr results based on the field that contained the hit
I was browsing the web looking for an indexing and search framework and stumbled upon Solr.
A functionality that we absolutely need is to boost results based on what field contained the hit.
A small example:
Consider a record like this:
…

TomFor
- 151
- 1
- 1
- 3
12
votes
1 answer
Elasticsearch - boost nested query with higher value
I have a query (well a part of it - rest is unimportant like pagination):
"query": {
"filtered": {
"query": {
"bool": {
"must": [
{
"term": {
"is_active": true
}
…

barat
- 1,040
- 8
- 14
6
votes
2 answers
Django Haystack - How to boost a field?
I'm with some problems in Django Haystack 1.2.5. I need to boost one field but aparently it is not working. I'm using Solr 1.4.1.
My Index:
class JobsTextIndex(indexes.SearchIndex):
text = indexes.CharField(document=True,…

André
- 24,706
- 43
- 121
- 178
6
votes
2 answers
Solr: fieldNorm different per document, with no document boost
I want my search results to order by score, which they are doing, but the score is being calculated improperly. This is to say, not necessarily improperly, but differently than expected and I'm not sure why. My goal is to remove whatever is…

JMTyler
- 1,604
- 2
- 21
- 24
4
votes
3 answers
How to boost Solr relevancy score by inverse of geodist()
So I've implemented and successfully used Solr 4. I've got to say that Solr 4 is awesome! Anyway I successfully sorted by distance and used a geofilter to limit the results to a certain area. What I would like to do now is boost the relevancy score…

Chris L.
- 275
- 3
- 10
4
votes
1 answer
Solr Relevance Search boost
I am using Solr 5.0.0, I have one question in relevance boost:
If I search for laptop table like words, is there any way to boost results search word before the words like by with or without etc.
I used this query:
? defType = dismax
& q = foo…

Juhan
- 1,283
- 2
- 11
- 30
3
votes
1 answer
Explain Apache SOLR boost function
I'm try to implement a logic in APACHE SOLR so that documents older than 2 years should get penalty based on the difference in number of days or months.
I am using this boost function, which I got after googling a lot.
…

Farhan Tahir
- 2,096
- 1
- 14
- 27
3
votes
2 answers
Solr: Boost by string field
How can I boost a query by a string field?
I've found only resources explaining date boosting.
E.g. these documents should be boosted in this order:
priority=a
priority=b
priority=c
I know, that I could sort by priority, but I want to combine this…

Matthias M
- 12,906
- 17
- 87
- 116
3
votes
1 answer
Query string with boost fields in Elastic Search
I am using Query String with Boost Fields in Elastic Search 1.7. It is working fine but in some scenario, I am not getting expected result.
Query:
query
{
"from": 0,
"size": 10,
"explain": true,
"query": {
"function_score": {
…

Jeeten Parmar
- 5,568
- 15
- 62
- 111
3
votes
4 answers
Solr sort after boost?
Is it possible to put boosted fields in front of other if its already sorted?
I have products that are sorted by popular ASC (its integer), but there are some specific products that I want to boost in front of other products, no matter what value is…

Kristaps J.
- 325
- 3
- 10
3
votes
2 answers
Solr Negative Boost Query result containing Some Specific Words
I have a field item_name, indexed in Solr 5.0.0. How do I give a negative boost to the query result that contains some specific words?
For example, let's suppose I have item_name like:
Feggi Brown Laptop Bags
Dell Laptop (Black) without Laptop Bag…

User123
- 91
- 6
3
votes
1 answer
Exact word not boosting much Solr
As reference in the given link
https://wiki.apache.org/solr/SolrRelevancyFAQ#How_can_I_make_exact-case_matches_score_higher
I tried one example . my schema.xml configuration given below.

Juhan
- 1,283
- 2
- 11
- 30
3
votes
0 answers
Solr exact word result come first
In Solr-5.0.0, I have one product_name field. When I search for a word or more than words, its giving results with product names that contain the words. How can I make it as the exact match come first.
My Schema.xml is below:

User1234
- 205
- 3
- 9