• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer

Haymarket Media Dev Extra

  • Home
  • Resources
    • Post Deployment Checklist
    • Comprehensive QA Site Checklist
    • LMS pre deployment QA Checklist
    • MC UAT Testing Matrix
    • Haymarket Project Matrix
    • Browser and Device Support Matrix
    • Developer Documentation Guide
      • Documentation Index
        • DFP Documentation
        • Bibblio Documentation
      • Development and QA
    • WordPress New User Requisition Form
    • Domain Requisition Form
    • Releases
    • Meetings
      • StandUp Procedures
    • Jira
      • Story Point Matrix
      • T-Shirt Sizing For Projects
      • How to submit a JIRA request?
      • How to draft a Jira ticket
      • How to draft an EPIC in Jira
    • Infrastructure
    • HM Theme Search rules
    • Performance
      • Performance Matrix
    • WordPress Outage Response Procedures
      • Web Dev group
      • WebSite Emergency notification group
      • MyCME Emergency notification group
    • Tutorials
    • Accessibility
      • Quick Accessibility Checklist Resources
      • Web Accessibility & You!
      • What is Web Accessibility (WiWA)
      • Design With Accessibility in Mind
      • Development: Coding For Accessibility
      • Experience: Checking & Testing Accessible Web
  • FAQ’s

HM Theme Search rules

Customizable Search Display Rules From the Customizer

  • Display Author byline with each search result.
  • Display Drugs using the extended result layout. This includes therapeutic categories and related resource center with each monograph search result.
  • Hide featured image for each search result. Display Author byline with each search result.

Customizable Search Rules From the Customizer

  • Limit search results to the last 12 months. This automatically sets the 12 month filter for all searches.
  • Increase weighting for drug monographs. This boost premium monographs relevancy score by 100 points.
  • Increase weighting for clinical charts. This boost articles that are tagged as clinical charts relevancy score by 200 points.
  • Search Filters. These allow you to enable/disable the different facets that can be used to filter content by.
  • Search type mapping. This allows you to consolidate the article type facet. You can map an existing article type to a new one or consolidate multiple article types into a single one. This only impacts how the search facets appears in the article type facet list it does not change the content or how its tagged in WordPress by any means.

Search Result Facet Rules

  • Article Type Facet. This facet is composed of a list of the top 10 article types across your search results.
  • Authors Facet.This facet is composed of a list of the 10 authors with the most content across your search results.
  • Section Facet. This facet is composed of a list of the top 5 sections across your search results.
  • Print Section Facet. This facet is composed of a list of the top 5 print sections across your search results.
  • Topics Facet. This facet is composed of a list of the top 5 topics (tags) across your search results.
  • Post Type. This facet is composed of a list of the top 5 content types across your search results.
  • Date Facet. This is a hard-coded facet that allows people to filter content by the following rules.
    • Published in the last 7 days
    • Published in the last 30 days
    • Published in the last 3 months
    • Published in the last 12 months
    • Published in the last 2 years
    • Published over 2 years ago

ElasticPress Search Rules

The query that we’re using within ElasticPress that gets sent to ElasticSearch is composed of two combined queries. The first query is looking for the entire phrase searched across a set number of fields. The second query looks for the individual words across a set number of fields. All words in in your search request must appear within the content for it to count but unlike the first query the words don’t have to be in the same order as entered. They don’t even have to be in the same field. Every time the entire search phrase appears within a piece of content that content relevancy score increases twice as much as if only the words in the phrase are found. ElasticSearch then takes both queries into consideration when coming up with the contents relevancy score. These are the fields we are looking at when doing searches.

  • Content Title
  • Content Body Text
  • Content Excerpt
  • Article Tags
  • Article Categories
  • Content Authors
  • Drug Therapeutic Categories
  • Drug Diseases
  • Drug Generic

Primary Sidebar

power-strip

Footer

Copyright © 2020 Haymarket Media All Rights Reserved
This material may not be published, broadcast, rewritten or redistributed in any form without prior authorization.
Your use of this website constitutes acceptance of Haymarket Media Privacy Policy and Terms & Conditions.