DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports Events Over 2 million developers have joined DZone. Join Today! Thanks for visiting DZone today,
Edit Profile Manage Email Subscriptions Moderation Admin Console How to Post to DZone Article Submission Guidelines
View Profile
Sign Out
Refcards
Trend Reports
Events
Zones
Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones AWS Cloud
by AWS Developer Relations
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones
AWS Cloud
by AWS Developer Relations
The Latest "Software Integration: The Intersection of APIs, Microservices, and Cloud-Based Systems" Trend Report
Get the report

Intro to Search Results Rankings and Keyword Highlighting

Jason  Hull user avatar by
Jason Hull
·
Mar. 21, 12 · Interview
Like (0)
Save
Tweet
Share
4.67K Views

Join the DZone community and get the full member experience.

Join For Free

When a user enters in a search query and is taken to a search engine results page, then the probability of clicking on a result is a function of three items:

  1. The density of the searched for terms found in the search snippet. Ideally, these are somehow highlighted – a different color, italics, bolding – to show the user that the search term is indeed found in the target link.
  2. The actual ranking in the search result. The higher the result, the more likely the user is to click on  that result.
  3. The search engine result as compared to what the content manager thinks should be in that position.

This article will cover the first two of those aspects: the keyword density and the relative placement.

First off, let’s understand why this is an important concept for content managers and IT-based search engine managers within the enterprise. The algorithm of a search engine will determine relevancy of results within the index of the corpus of documents and materials within a website. This relevancy is usually based on keyword and concept frequency; however, it is possible, particularly within Solr, to tune a search engine so that relevancy is based on other factors, such as recent sales or recent clicks on results. While, for example, a marketing manager may want to have the product with the highest profit appear at the top of a search engine results page (SERP), this can be disastrous to the overall profitability and sales of an e-commerce enterprise.

Let’s examine why this is the case. Imagine if a user searches for the term “red ball.” A red ball itself sells for $1.00 and has a $0.10 profit. If a user sees red ball as the top result, he will eventually buy the red ball 50% of the time. In this case, if the red ball comes up first, then the expected value of the search for the term “red ball” is $0.05. However, if a marketing manager decides that blue balls, which have a sales price of $2.00 but a profit of $0.50, should be first. Given past clickthrough rates (CTR), we know that if the user searches for “red ball” but sees the blue ball first, there is a 1% chance of a purchase. This leads to an expected value of $0.005. We also know that if the red ball is second, there is a 20% chance of a purchase, which gives us an expected value of the second position of $0.01. Combine the two, and you have an expected value of $0.015.

This is a very simplistic analysis, but is the framework to understand why putting less relevant but more profitable items above the more relevant but less profitable product. Someone searching for “red ball” often wants a red ball, and, on a rare occasion, can be convinced of a cross sell of the value of a blue ball. However, the place to suggest alternative items may be on a shopping cart page or a checkout page (both of which are easily accomplished with Solr) rather than manually forcing a different result set.

To evaluate the measurable quality of a SERP in a quantifiable measure, we must evaluate both the relative position of a result and the keyword density of the search term within the result snippet.

First, we look at the probability of a click result given the relative ranking of a result within the search engine results page. All things being equal, we know that the top position gets more clicks than any other positions. Short of having a test and control set to measure the delta created by altering a search relevancy algorithm, we can use existing click probability data to provide a proxy for a relative scoring, setting the top result to the highest score and normalizing other positions compared to the top position.

Then, we look at the keyword density of the SERP result snippet to determine how much signposting we are providing the user to signal that the result has appropriate relevancy for the search term. We use a discounted cumulative gain function of the keyword density to create a scoring model for the density, with a top score ceiling. We believe that there is a rapidly declining utility of incremental density beyond a certain set point and do not score additional value for density above that value.

We then combine the two values and provide a normalized score from 0 (low) to 100 (high). We believe that a score of 70 or higher is excellent and provides appropriate content-based signposting for users in their search terms.

Ideally, you should be looking at your top 100 search terms and getting a RUP score for each of them. Low scores will point to either the need to adjust the relevancy algorithm within your search engine or to guide your content managers to adjust the content of their posts to provide a higher keyword density for the top search terms. In either instance, IT or content management teams will have a quantifiable metric to point to in order to drive change and also to measure the success of subsequent changes.

If you need metrics on the viability of your search engine results pages, please contact us or e-mail us at talktous at opensourceconnections dot com.

Search engine (computing)

Published at DZone with permission of Jason Hull, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

Popular on DZone

  • HTTP vs Messaging for Microservices Communications
  • The 5 Books You Absolutely Must Read as an Engineering Manager
  • How To Handle Secrets in Docker
  • The Path From APIs to Containers

Comments

Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com
  • +1 (919) 678-0300

Let's be friends: