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

Retrieve Laravel Model results based on multiple ID's

I have implemented ZendSearch into my Laravel application. I am using it as my search engine where users will type a search word, and then ZendSearch will return me an array of results ordered by relevance. However, the array that ZendSearch…
justinl
  • 10,448
  • 21
  • 70
  • 88
57
votes
13 answers

How do search engines find relevant content?

How does Google find relevant content when it's parsing the web? Let's say, for instance, Google uses the PHP native DOM Library to parse content. What methods would they be for it to find the most relevant content on a web page? My thoughts would…
RobertPitt
  • 56,863
  • 21
  • 114
  • 161
45
votes
9 answers

How can I manipulate MySQL fulltext search relevance to make one field more 'valuable' than another?

Suppose I have two columns, keywords and content. I have a fulltext index across both. I want a row with foo in the keywords to have more relevance than a row with foo in the content. What do I need to do to cause MySQL to weight the matches in…
Buzz
  • 1,616
  • 3
  • 18
  • 25
36
votes
3 answers

How to provide most relevant results with Multiple Factor Weighted Sorting

I need to provide a weighted sort on 2+ factors, ordered by "relevancy". However, the factors aren't completely isolated, in that I want one or more of the factors to affect the "urgency" (weight) of the others. Example: contributed content…
drzaus
  • 24,171
  • 16
  • 142
  • 201
34
votes
1 answer

MySQL - How to ORDER BY RELEVANCE? INNODB Table

I've got about 20,000 rows in an INNODB table called 'cards', so FULLTEXT is not an option. Please consider this table: id | name | description ---------------------------------------------------------- 1 John Smith Just…
k00k
  • 17,314
  • 13
  • 59
  • 86
24
votes
5 answers

Search ranking/relevance algorithms

When developing a database of articles in a Knowledge Base (for example) - what are the best ways to sort and display the most relevant answers to a users' question? Would you use additional data such as keyword weighting based on whether previous…
Tom
  • 5,835
  • 4
  • 25
  • 30
16
votes
3 answers

Full-text search relevance is measured in?

I am making a quiz system, and when quizmakers insert questions into the Question Bank, I am to check the DB for duplicate / very highly similar questions. Testing MySQL's MATCH() ... AGAINST(), the highest relevance I get is 30+, when I test…
syaz
  • 2,659
  • 6
  • 36
  • 44
14
votes
1 answer

What is the maximum possible value range of MATCH ('...' IN NATURAL LANGUAGE MODE) in MySQL?

MySQL provides FULLTEXT indexes, that can be retrieved with the MATCH (col1,col2,...) AGAINST (expr [search_modifier]) construct. There are several Full-Text Search variants, one of them (and the default one) is the Natural Language Full-Text…
automatix
  • 14,018
  • 26
  • 105
  • 230
13
votes
2 answers

Mysql fulltext search relevance across multiple tables

I have been tasked with creating a site wide search feature. The search needs to look at articles, events and page content I've used MATCH()/AGAINST() in MySQL before and know how to get the relevance of a result but as far as I know the relevance…
michael
  • 4,427
  • 6
  • 38
  • 57
11
votes
7 answers

Function that returns affinity between texts?

consider I have a string1 = "hello hi goodmorning evening [...]" and I have some minor keywords compare1 = "hello evening" compare2 = "hello hi" I need a function that returns the affinity between the text and keywords.…
dynamic
  • 46,985
  • 55
  • 154
  • 231
10
votes
8 answers

C# Finding relevant document snippets for search result display

In developing search for a site I am building, I decided to go the cheap and quick way and use Microsoft Sql Server's Full Text Search engine instead of something more robust like Lucene.Net. One of the features I would like to have, though, is…
CleverPatrick
  • 9,261
  • 5
  • 63
  • 86
9
votes
3 answers

Sort Wordpress Search by Relevance

I've created a pretty advanced search for a Wordpress site I'm working on atm. Allowing visitors to filter results by different taxonomies, sort them by date or custom fields as well as the normal free text search (which WP offers by default). I've…
powerbuoy
  • 12,460
  • 7
  • 48
  • 78
9
votes
1 answer

MYSQL fulltext search order by relevance

I am trying to get my Full text search to order by relevance. here is my code it works if remove the ORDER BY but doesn't sort by relevance. I have tried this and it actually makes it so it doesnt find any results at all... Any…
user1548769
  • 319
  • 3
  • 5
  • 12
8
votes
2 answers

Order solr documents with same score by date added descending

I want to have search results from SOLR ordered like this: All the documents that have the same score will be ordered descending by date added. So when I query solr I will have n documents. In this results set there will be groups of documents with…
Dorin
  • 2,482
  • 2
  • 22
  • 38
8
votes
1 answer

Client-side predictive search relevance calculation with multiple parameters

I'm writting a predictive search that, for server performance requisites (all is cached), must be run on the client browser. The items are TV shows and movies and are matched by title, actors and directors names. Once the search has been executed,…
Coquevas
  • 609
  • 6
  • 11
1
2 3
18 19