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
2
votes
0 answers

Improving an elasticsearch query on human names and addresses

I am searching an elasticsearch index containing human names and addresses. The relevance ranking is good but not as good as it needs to be. It is also too slow. Our index includes a combination of ngram and edge_ngram analyzers. Our queries are…
GNG
  • 1,341
  • 2
  • 23
  • 50
2
votes
1 answer

How to use an ngram and edge ngram tokenizer together in elasticsearch index?

I have an index containing 3 documents. { "firstname": "Anne", "lastname": "Borg", } { "firstname": "Leanne", "lastname": "Ray" …
GNG
  • 1,341
  • 2
  • 23
  • 50
2
votes
1 answer

ElasticSearch: given a document and a query, what is the relevance score?

Once a query is executed on ElasticSearch, a relevance _score is calculated for each retrieved document. Given a specific document (e.g. by doc ID) and a specific query, I would like to see what is its _score? One way is perhaps to query ES,…
mhn_namak
  • 453
  • 1
  • 6
  • 18
2
votes
2 answers

MySQL full text search in boolean mode order by relevance

I am trying to construct a full text search in boolean mode in MySql. First I tried this as I read that if you use WHERE it will automatically return results by relevance: SELECT DISTINCT word1, lang1, lang2, row_type FROM translations WHERE MATCH…
user1967599
2
votes
4 answers

Designing "relevance-based" search?

In my application (PHP/MySQL/JS), I have a search functionality built in. One of the search criteria contains checkboxes for various options, and as such, some results would be more relevant than others, should they contain more or less of each…
Julian H. Lam
  • 25,501
  • 13
  • 46
  • 73
2
votes
1 answer

Solr - Score is always coming 0

I am new to Solr. I have done indexing of web pages and getting the search result. But all results have "score" = 0 "boost" = 0 As a result my search results are not sorted properly. At present my results are lexicographically sorted based on…
kic
  • 39
  • 1
  • 5
2
votes
1 answer

ElasticSearch how to ensure that all words are involved in search

Let's say I have an index in ElasticSearch 6: "mappings" : { "pet" : { "name" : { "type" : "text" }, "info" : { "type" : "text" }, "description" : { "type" : "text" } …
KozhevnikovDmitry
  • 1,660
  • 12
  • 27
2
votes
1 answer

Document relevancy score based on topic modelling

I currently have a trained topic model using MALLET (http://mallet.cs.umass.edu/topics.php) that is based on about 80 000 collected news articles (these articles all belong to one category). I wish to give a relevancy score each time a new article…
2
votes
1 answer

Solr - Change how score is calculated? (Sum instead of Max)

We're having some relevance issues with Solr results. In this particular example we have product A showing up above product B. Product A's title contains the search term. Product B's title also contains the search term along with its Description and…
Reddy
  • 481
  • 1
  • 7
  • 20
2
votes
3 answers

How to make mysql automatically bold matching words in fulltext search

I have tried to precisely explain my problem in the title itself. Can I surround the matching words in query by in mysql query itself? MySQL query is: select id, FirstName,LastName,addcomments WHERE MATCH (FirstName,LastName,addcomments) AGAINST…
hiprakhar
  • 1,007
  • 3
  • 12
  • 15
2
votes
0 answers

Length normalisation in elasticsearch cross_field multi_match

I am currently implementing a search for people names in a database. It's a structured document that has 3 fields: firstName, middleName, lastName. I started using the cross_fields multi_match query and it works fine unless one corner case. This is…
2
votes
1 answer

Change scoring function in elasticsearch

I need to retrieve documents in elasticsearch not by the default scoring function used (such as tfidf etc) but just by word frequency or term frequency (not idf etc). Is there a way to modify it? Can I do it in python?
ayush singhal
  • 1,879
  • 2
  • 18
  • 33
2
votes
1 answer

In Elasticsearch, how do you boost a score by the value of a ranking (1st, 2nd, 3rd...) field?

I have a field in the document that is a ranking: where the lower the value, the higher the score it should have. Being first is best, but being last is the worst. So a ranking of 1 is better than 1 million. So far I've been able to boost on the…
JayNCoke
  • 1,091
  • 2
  • 11
  • 17
2
votes
1 answer

is there any upper limit on relevance score in elasticsearch

I intend to normalize the relevance score returned by queries( using more_like_this query ) in elasticsearch. Is there any limit on maximum possible relevance score.
2
votes
3 answers

Can anyone point me toward a content relevance algorithm?

A new project with some interesting requirements has arrived on my desk. I need to develop a searchable directory of businesses, with a focus on delivering relevant results based on arbitrary search queries. The businesses can be of any niche;…
Stephen
  • 18,827
  • 9
  • 60
  • 98