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