Questions tagged [relevance]

Search Relevance is the practice of manipulating a search application's behavior to improve the quality of the search results based on the needs of the application's users

Search Relevance is the practice of improving the quality of search results in a search application. In relevance work, you line up a user audiences needs (as expressed in their natural language search string) with the content available in the search application.

For example, a customer typing the search "cancer" into a hospital site's search is likely to have very different expectations than doctors typing that term into a medical research site. In the hospital case, users want a "info desk" search user experience, and are likely interested in the hospital's cancer services. For doctors searching a research site, they're more likely to be interested in the latest cancer research.

With search relevance, you work to understand the user's needs and line up the search application's ranking behavior to match. Relevance work involves technical work to manipulate the ranking behavior of a commercial or open source search engine like Solr, Elasticsearch, Endeca, Algolia, etc. This means manipulating field weightings, query formulations, text analysis, and more complex search engine capabilities. It may also mean leveraging user behavioral data, NLP, statistical, and other machine learning techniques to modify or enrich the behavior of such a search engine.

More Reading

Blog

Books

273 questions
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
0 answers

Laravel MySQL Full text search InnoDB Relevancy Calculation for multiple rows with same number of occurences in total

using mysql from xaamp v8.1.10 along with laravel v5.5.3. Full text Search Index enabled in table 'ex1' for column 'des' and 'ft_min_word_len = 1'. laravel query: $string='pink item product'; $result = ex::active()->selectRaw("*,match(des)…
0
votes
0 answers

Scoring issues while using BM25Similarity

While tinkering solr scores in a custom BM25Similarity class using solr params, I find that the scores are logged correctly but score of docs for the same query does not change after the calculation is compiled once. Although in the explain section…
0
votes
1 answer

php mysql fulltext search order by relevance

How to make a php fulltext search order by relevance? SELECT * FROM table WHERE MATCH (col1,col2,col3) AGAINST ('+$boolean' IN BOOLEAN MODE) Order By relevance I want to set the relevance, first should match col1, col2 then then match col3, for…
cj333
  • 2,547
  • 20
  • 67
  • 110
0
votes
1 answer

Getting EXACT matches from full-text search returned first?

I am using the below code for example: SELECT *, (MATCH (`wm`, `locn`, `gns`) AGAINST('foot locker')) AS score FROM `example_table` WHERE MATCH (`wm`, `locn`, `gns`) AGAINST('foot locker')) order by score DESC; However even though EXACT matches…
Brett
  • 19,449
  • 54
  • 157
  • 290
0
votes
1 answer

Controlling the amount of decimal places on fulltext search relevance score?

I recall doing this before but I just can't remember how I did it, so was wondering if somebody could please enlighten me? By default you usually get scores such as 14.9236183166504 for example; how can I trim that to just 2 decimal points or none…
Brett
  • 19,449
  • 54
  • 157
  • 290
0
votes
1 answer

Fetch other document value while framing DSL query

I'm adding a script_score to my DSL query, to boost results based on the price of a source product. something like this: functions":[ { "script_score":{ "script":"if (doc['price'].size() > 0 &&…
User1203
  • 77
  • 2
  • 11
0
votes
1 answer

Count relevance/weighted arithmetic mean SQL

I have a table of movies and a table of reviews In my app, I want to show top 10 movies of any genre. I clearly cannot sort movies just by rating since there are movies with only 1 5 star review, thus only irrelevant movies will be recommended to…
qwezxc789
  • 124
  • 1
  • 8
0
votes
1 answer

Solr & Sphinx: How to Improve Relevance?

Sphinx's proximity-enabled ranker uses a slightly modified BM25 ranker (statistical bag-of-words) + a longest-word-substring match formula strongly favoring the latter, while Solr uses some other statistical ranking function (not BM25, but similar)…
Jaimie Sirovich
  • 1,088
  • 2
  • 10
  • 14
0
votes
1 answer

How to get relevance score for each article classified, Python NLP

Here is a code this code classify Text into 10 categories, it shows the overall accuracy of the algorithm at the end: import numpy as np from sklearn.naive_bayes import MultinomialNB from sklearn.feature_extraction.text import CountVectorizer import…
tursunWali
  • 71
  • 8
0
votes
1 answer

Lucene.Net: Relevancy by distance between words

I create (and update frequently) the index of users using following code (a bit shortened for demonstration purposes here): Lucene.Net.Store.Directory directory = FSDirectory.Open(new System.IO.DirectoryInfo("TestLuceneIndex")); …
terrious
  • 33
  • 2
  • 6
0
votes
0 answers

How to apply boosting in solr for keywords from txt(or config) file

I am new in solr world, please help me in boosting keywords. I have a keywords.txt file with 100 words. For example: foo^1.1 bar^0.9 test^0.1 wings^0.9 How can I add this file to Solr? I'm looking for a way similar to synonyms.txt, stopwords.txt,…
Ivinsky
  • 21
  • 5
0
votes
0 answers

How can I search based on relevance to flutter?

How can I search based on relevance to flutter? I'm not just talking about displaying the searched data. I am talking about the ones closest to the term to be searched in terms of their letters to the top. Normally the index order with…
sedatg
  • 51
  • 1
  • 4
0
votes
0 answers

How to achieve Correct Solr relevancy(Please Check Body ..)

I have few fields A,B,C,D,E,F There's a copyField ABC If I Search ABC:football I want to take results from A at top in any condition Score sort by desc,So top from A should be above Now what it's doing is It's Calculating the Score and if Some…
0
votes
2 answers

Rank PHP MySQL search results based on result sequence

I'd like to improve my MySQL search functionality. When searching "Fi" in my car database, I would like FIAT to be ranked first, as I feel a cars brand should have a higher rank than the model version. I want to tell MySQL if the search term matches…
Nitx96
  • 5
  • 3