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
4 answers

Left join will null in MySQL

I am looking for a way to create a relative relevance function when looking for values in two (or more) different tables. So I have tables like this table1: id weight 1 0.1 2 0.15 3 0.12 6 0.21 table2: id weight 3 0.09 6 0.2 8 0.1 11…
Epsiloncool
  • 1,435
  • 16
  • 39
0
votes
0 answers

How to match variables against parameters in mysqli_stmt_bind_param()

Slightly odd one this and any help would be appreciated. $rs_contact = mysqli_prepare($conn, " SELECT CONTACTID, COMPANY, FORENAME, SURNAME, MATCH (FORENAME, SURNAME) AGAINST ('?') AS relevance FROM CONTACTS WHERE MATCH (FORENAME, SURNAME) AGAINST…
Richard Owens
  • 155
  • 16
0
votes
1 answer

Using multi-layer queries in Solr

The Solr "qf" parameter works as follows: Let's say I have: query = "sid" and qf = [field1, field1_edge, field2, field2_edge]. The Solr score is calculated as follows: max(f1, f1_e, f2, f2_e) + tie * (sum of other 3 fields) where: "tie" lies in…
0
votes
1 answer

Relevance and Similarity Computation in Apache Lucene 7.5.x?

What is the difference between TFIDFSimilarity, DefaultSimilarity, and SweetSpotSimilarity in Lucene 7.5.1? How can we implement BM25F in Lucene?
Rocky
  • 21
  • 5
0
votes
0 answers

Search by another field when nothing was found ElasticSearch

Lets say I have index with two text fields: "properties" : { "name" : { "type" : "text" }, "description" : { "type" : "text" } } I need to implement full text search by these two fields with priority. First by name, and…
KozhevnikovDmitry
  • 1,660
  • 12
  • 27
0
votes
1 answer

Clasterized scoring in ElasticSearch

Let's say I got some complex query in ElasticSearch 6.2 and it can return the next hits: "hits" : [ { ... "_score" : 100, "_source" : { ... } ... }, { ... "_score" : 99, "_source" : { ... } ... }, { ... …
KozhevnikovDmitry
  • 1,660
  • 12
  • 27
0
votes
1 answer

Relevance calculation with Match ... Against in JOIN queries (MySQL)

I am trying to get relevant search results, using the following JOIN query: SELECT `products`.`id`, `brands`.`name` AS `brand`, `products`.`name` AS `productname`, MATCH (`brands`.`name`) AGAINST ('somebrand someproduct' ) AS…
RWS
  • 538
  • 5
  • 14
0
votes
0 answers

Search by relevance SQL

I would love to search strings from database but i want it to order by relevance I have picked up this example and is believed to work just fine. Before search The quick brown dog jumped fox-like. The quick brown fox jumped over the lazy dog. The…
Omari Victor Omosa
  • 2,814
  • 2
  • 24
  • 46
0
votes
2 answers

Python - Compare the similarity of one number and a list of numbers

I am trying to compare the similarity between 1 number and a list of numbers, and not sure how to generate this problem? I know how to compare the similarity of 2 inputs: from difflib import SequenceMatcher def similar(a,b): return…
0
votes
2 answers

solr sort by score not working properly

I am using Solr v6.2.1 .We are not getting accurate results using "sort score desc". let's assume we have a list of documents in our index as below [{ "id": "1", "content": ["java developer"] }, { "id": "2", "content": ["Java is…
0
votes
1 answer

SOLR relevance multiple terms query

I have the following query to be performed in SOLR 4.7 query=yellow tree house And doc1 and doc2 are as follows doc1=house house house house house doc2=yellow tree On the default SOLR implementation doc1 will be ranked the first since the term…
0
votes
1 answer

function score with multi-match query

I have an elastic query that contains a multi-match query in it.. "multi_match" => [ "query" => "Will Smith" "type" => "best_fields" "fields" => [ "title^10", "description^7", "keywords", …
maral
  • 97
  • 2
  • 11
0
votes
1 answer

In SOLR, how can I make to type of documents more relevant then other types?

In the ranked list returned by SOLR, I want to have documents of category with "Sports" coming before than those with the "Politics" and "Economy". How can I tune the SOLR Search Engine to achieve this?
0
votes
2 answers

How to order mysql search results by relevence of word priority

Possible Duplicate: PHP MySQL Search And Order By Relevancy Hi, I have a table with several columns containing fields like name, address, company etc. Lets say someone search for "microsoft john". I want the results containing "microsoft" should…
hiprakhar
  • 1,007
  • 3
  • 12
  • 15
0
votes
1 answer

relevance by keyword solr

How can we sort the results of a query according to the position of the keyword? I start the search only on the field Label when I have solr search query titi titi test tilte toto titi tata what parameter should we put in place to have this order…
Zied Ellouze
  • 41
  • 1
  • 10