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
1 answer

Sorting by relevance performance issues

Is there a function / method within mongoose (and or mongodb) which could be used to sort a queries results based on relevance (highest number of matching query params)? The example below is what I am using at the moment (the query uses $in:[],…
8eecf0d2
  • 1,569
  • 1
  • 13
  • 23
2
votes
1 answer

Solr relevancy & boosting best approach

Scenario is to boost documents on multiple field values: I have a field "Category" containing values - "News", "image", "video", "audio". Now on the basis of fields values mentioned above I would like to give some boosting(priority) to them, say for…
2
votes
2 answers

Min_score for a "must" in a bool query in Elasticsearch

Is there a way to apply a minimum score to a must clause in a bool query in elasticsearch. I want to be able to do something like this: { "query": { "bool": { "must": [ { "match": { "name":…
kiml42
  • 638
  • 2
  • 11
  • 26
2
votes
1 answer

Function_score using score_mode inside a bool query as max but working like sum?

I am using function_score so that i can use its score_mode as maximum score of the bool query i am using actually i have two boolean query inside should now i want the score of the document to be the maximum score among both queries my code is given…
aman verma
  • 732
  • 1
  • 8
  • 26
2
votes
1 answer

sqlite weight the matches in full text search

I have a fts3 table like this: CREATE VIRTUAL TABLE docs USING fts3(id, title, body); I want to make weight the matches in title higher than those in content like this question What I did: SELECT case when title match 'word' then…
ductran
  • 10,043
  • 19
  • 82
  • 165
2
votes
0 answers

Boost results matching terms query without filtering in elasticsearch

Context : I'm relatively new to ElasticSearch, so maybe there's a concept I'm missing. I'd like to boost the relevance score of documents that have one or more tags (the more tags, the better the score), without filtering out the documents that do…
m_x
  • 12,357
  • 7
  • 46
  • 60
2
votes
2 answers

How to find the weight details in solr query

I found the query for getting the data from solr using the relevance boostage. localhost:8983/solr/MYCORE/select?q=*:*&debugQuery=true What I want is a way to identify the solr weight , so that I can identify whether the query result is correct.
Joju
  • 107
  • 8
2
votes
3 answers

If anyone has used Sphinx Search engine before...do you know if it can join words?

When you search "Stack Overflow", Sphinx will not bring up results that match "Stackoverflow" That's because Sphinx indexes "Stackoverflow" as one word...whereas the query is two words. Does anyone know how to fix this? (like Google...they can join…
TIMEX
  • 259,804
  • 351
  • 777
  • 1,080
2
votes
2 answers

How can you compare sets of numbers and get the most relevant results using MySQL and PHP?

Consider this: set A: 1 2 3 4 set B: 3 4 5 6 set C: 4 5 6 7 set D: 1 I want to compare D with the rest and get as a result a set of numbers as most relevant. The result should be in this order: 4 (as D has a common number with A and 4 is…
stagas
  • 4,607
  • 3
  • 28
  • 28
2
votes
1 answer

Order sql result by occurrence of a set of keywords in a string

For each rows, I want to get the relevance of each description compared to an undefined number of keywords. I know that "THEN +1" does not work, but I would like to come to this result (...to have a number (starting from 0 each rows) that is…
Maxime R.
  • 133
  • 1
  • 9
2
votes
0 answers

Basic quest on Twitter API user search and the relevance of results

Dear Stackoverflowianers, Dear Twitter-Gurus, This is just a basic question, waiting for a simple basic answere: I do a user search by Twitter API with the following…
Ingmar Erdös
  • 517
  • 8
  • 18
2
votes
1 answer

Return only results that match enough NGrams with Solr

To achieve some degree of fault tolerance with Solr I have started to use the NGramFilterFactory. Here are the intersting bits from the schema.xml:
Georg M. Sorst
  • 264
  • 4
  • 13
2
votes
1 answer

select relevance title based on tag similar to like with mysql

TAGS tag_id post_id value ------------------------ 1 1 some 2 1 good 3 1 title 4 2 some 5 2 good 6 3 some 7 4 good 8 4 …
Adam Ramadhan
  • 22,712
  • 28
  • 84
  • 124
2
votes
1 answer

How to deal with very uncommon terms in tf-idf?

I'm implementing a naive "keyword extraction algorithm". I'm self-taught though so I lack some terminology and maths common in the online literature. I'm finding "most relevant keywords" of a document thus: I count how often each term is used in…
hippietrail
  • 15,848
  • 18
  • 99
  • 158
2
votes
4 answers

How to check a regexp's relevance?

Let's say we have two regular expressions: 1234.* and .* Input: 1234567 Obviously they both match, but 1234.* matches better since it is more specific. i.e. is more relevant. Is there a standard way for checking which is more relevant? edit: Some…
Matthias van der Vlies
  • 3,834
  • 3
  • 24
  • 28