Data models simplify the process of getting started with Managed Fusion by providing pre-configured objects to reduce the effort spent on basic starting tasks. This helps keep documents consistent between datasources and intuitive to the object’s type.

Components

Data models consist of the following:
  • Object type - Describes the object type, or what a document in the index is. For example, an object may be a file, email, person, product, etc.
  • Index pipeline - Specifies the index pipeline that is indexing documents relevant to the data model.
  • Query pipeline - Specifies the query pipeline that is invoked when a query involves the data model.
  • Fields configuration - Creates a schema map that describes how the object schema should be translated into the Solr index. For example, the field name first_name can map to Solr fields first_name_s and first_name_t.

Object type

The object type defines what a document is and what associated data is expected. Example When indexing employees for a company directory, certain fields are expected by a user. This includes the employees’s name, title, and contact information. An object type, person, is created for this purpose. The data model object is created to include this information in a clear, intuitive way:
Data Model FieldSolr Fields
first_namefirstName_t firstName_s
last_namelastName_t lastName_s
emailemail_s
job_titlejobTitle_t lastName_s

Index pipeline

When you add a connector in Managed Fusion, a default index pipeline is created that is used to map the documents’ fields to the data model fields. The pipeline contains two pipeline stages, the Data Model Mapping index stage and the Call Data Model Pipeline index stage. Once configured, this stage indexes the documents as various object types. Fields irrelevant to that object type are optionally discarded.

Query pipeline

The query pipeline is applied by default whenever a user is searching documents of the object type. This enables query pipeline configurations specialized for the object type. For example, a query pipeline for the object type person could boost or filter results for current employees over previous employees.
The query pipeline is optional for data models.

Fields configuration

Data model fields allow you to map document fields to Solr fields in a way that respects the data model object type. The fields configuration allows this map to be intuitive to new users, offering a guided experience for configuring these options.

UI fields configuration

FieldRequiredDescriptionExample
Name of the Data Modelstring A user-friendly name for the data model. This typically describes the object type.person
Index Pipelinestring The name of the index pipeline used for the data model.companyDirectory-index-pipeline
Query Pipelinestring The name of the query pipeline used for the data model.companyDirectory-query-pipeline
Field Namestringfirst_name

Required
booleantrue
Solr Fields
Solr Field NamestringfirstName_t
Is Query Fieldbooleantrue
Enable Phrase Matchbooleanfalse
Boost Valueinteger The amount of boost to give to the query.1
Phrase Boostinteger The amount of boost to give to the query, if it matches as an exact phrase.2

More information