Full-Text Indexing - Smile CDR Documentation

Full-Text Indexing

Smile CDR uses a Full-Text engine to provide fast indexing capabilities for specific query patterns that benefit from this type of index. Using this feature is completely optional, and Smile CDR will function without it. There are several query patterns that will not function without it, although these are all considered advanced types of searches that are not expected to be needed in a "typical" deployment.

Indexes

When Hibernate Search Indexing is enabled, each of the following indexing functions can also be used if the corresponding setting is also enabled.

Note that enabling any of these options on a populated index requires reindexing existing resources

Customizing Text and Content Full-Text Indexing

The _content SearchParameter (which indexes the string content within the structured data in resources) and the _text SearchParameter (which indexes the resource narrative) can be customized in terms of which resources they index and which specific content gets indexed.

For information on how to select only specific resource types to index, see Selectively Enabling Content and Text Indexing.

For information on how to use an interceptor to customize the specific resources or contents that get indexed, see Customizing Content and Text Indexing by Interceptor.

Full-Text Providers

Smile CDR ships with compatibility to 3 providers that can be used to provide indexing services. Each one has its own characteristics:

Lucene Disk Provider

When using the Lucene Disk Provider, a directory on the local filesystem should be configured using the Hibernate Search Directory option.

This directory should be created on a disk partition that has enough capacity to store all content for the selected indexes.

Elasticsearch/OpenSearch Provider

When using the Elasticsearch/OpenSearch provider, the following settings should be provided:

In order for Smile CDR to connect to the Elasticsearch/OpenSearch cluster, The connecting user has to have the following minimal set of permissions.

For each of the following index permissions which are prefixed with indices:, the user must have them associated to these two index patterns:

OpenSearch Permissions

Permission Reason
indices:admin/get Listing existing indices
indices:admin/aliases Ability to create write and read aliases for necessary indices
indices:admin/create Ability to create required indices
indices:admin/mapping/put Custom index settings for Hibernate Search managed indices.
indices:data/write/bulk* Hibernate Search will often buffer and bulk-write in high throughput situations
indices:data/write/delete Data removal or reindexing needs to be updated to the fulltext index
indices:data/write/index Storing data to Elasticsearch/OpenSearch
indices:data/read/search Terminology/Fulltext search
cluster:monitor/main Hibernate Search monitoring indices for ILM rollover
cluster:monitor/health Hibernate Search health checks for the cluster

Elasticsearch Permissions

Permission Reason
indices:manage Creation of indices and mapping management, as well as ILM
indices:read Ability to read and search indices.
indices:write Ability to write to required indices
cluster:monitor Hibernate Search health checks for the cluster

Resource Storage Mode

Full-Text Indexing

FHIR Storage (Relational)

FHIR Storage (Relational) Module Resource Storage Mode Full-Text Indexing Performance and Caching Chained Searching and Sorting Scaling Smile CDR Databases MegaScale MegaScale Patient ID Partition Selection Modes MegaScale Document Repository Mode Meta Source Migration Compressed Token Indexing Database Partition Mode

Performance and Caching