Skip to main content

Cookie control banner

Necessary Cookies
These cookies are necessary for this website to function correctly. They are set when you perform certain actions on the site, such as creating an account, logging in, changing your privacy preferences or submitting a form. You can block these cookies in your browser, but this will stop parts of the site from working properly.
Functional Cookies
These cookies allow the website to provide extra functionality and more personalised experiences. They may be set by us or by third party providers whose services we have added to our pages. If you choose not to allow these cookies, these services may not work correctly.
Analytical Cookies
These cookies record anonymous data on how visitors use our website to help us monitor how well our website works. This data includes how many people have looked at specific pages, how long visitors stay on the site, and what devices they use. We use this data to identify changes that we could make to improve your experience and make our website more efficient.
Marketing Cookies
We set some cookies so you are shown more relevant marketing content. These include cookies from third-party advertising networks to show you different adverts on their services if you have previously visited our site. If you choose not to allow these cookies, you may experience less relevant advertising on other sites.
Browse Documentation

Search content field

Created by j.moore, last modified by r.bromley on 06 Apr 2022

When we index entry content into Elastic, a special field is generated called the searchContent field.

The field is a long string of content from all text fields in an entry, including composer content. It also includes the content from the entryTitle and entryDescription fields of linked entries.

This field isn't returned by the Management API as it is essentially one big string to make searching content more efficient and easier for developers.

JSON
{ title: "Meet a brighter and bolder Contensis", summary: "Contensis product owner, Richard Saunders will be looking at the latest Contensis updates.", introduction: "Join Richard Saunders our Contensis product owner and learn about all that’s new in Contensis 14.", searchContent: "Meet a brighter and bolder Contensis Contensis product owner, Richard Saunders will be looking at the latest Contensis updates. Join Richard Saunders our Contensis product owner and learn about all that’s new in Contensis 14. formWebinarSignUp https://www.gotomeeting.com/en-gb 45 <p>You&rsquo;ll discover how we&rsquo;re making Contensis more accessible.</p> <p>How to control what you see in the entry listing with managed columns.</p> <p>How to understand how your entries are connected.</p> <p>You&rsquo;ll learn how to find and locate content within entry searching.</p> <p>Plus get an Introduction of the Workflow API.</p> <p>Richard shares all that&rsquo;s new in Contensis. An updated accessible interface, a richer understanding of how your content is used, along with new ways of searching and managing the content you work with every day.</p> An illustration of a man on a laptop Illustration=Product release Richard Saunders Richard is the product owner for Contensis – our CMS. He sets the direction and roadmap for the product. His background includes both user experience and front-end design. https://calendar.google.com/calendar/u/0/r/eventedit/copy/MmY3N2RpNGdtNDc5bmI2anBrNWg0NnY5NGcgci5icm9tbGV5QHplbmdlbnRpLmNvbQ/Zi5iZWF2YW5AemVuZ2VudGkuY29t?sf=true invite new E-commerce Emergency services Government Higher education A high-level educational institution in which students study for degrees and academic research is done Local government Manufacturing Accessibility basics part 1 – an introduction to WCAG 2.1 Why is it so important to make a website accessible? Jon Maskrey takes a look at who benefits from accessible websites, UK accessibility laws, and the implications of WCAG 2.1. Developing with ARIA to help make your web application accessible Accessible Rich Internet Applications or ARIA, is a specification created to make interactive content accessible. Learn how to make your website accessible using ARIA roles. Meet a brighter and bolder Contensis Join Richard Saunders our Contensis product owner and learn about all that’s new in Contensis 14. An illustration of a man on a laptop Contensis release", }

You can see in the example how the title, summary and introduction fields, along with the rest of the text fields, get merged into one long string in the searchContent field.

You can query against the searchContent field using the following search operators:

  • contains
  • startsWith
  • endsWith
  • between

Here is an example of querying this field using our Management API. The main use case for the searchContent field is when you are querying multiple content types that could have different text fields that make up the main body copy of an entry, such as in a site-wide search.

HTTP example

JSON
{ "where": [ { "field": "sys.versionStatus", "equalTo": "published" }, { "field": "searchContent", "contains": "Batman" }, { "field": "runtime", "greaterThan": "200" } ], "pageIndex": 0, "pageSize": 25 }

If you wish to query the contents of assets such as PDFs and Word documents. Then the field id is _searchContent.