Data Models
Data models simplify the process of getting started with 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 fieldsfirst_name_s
andfirst_name_t
.
Object type
The object type defines what a document is and what associated data is expected.
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 Field | Solr Fields |
---|---|
|
|
|
|
|
|
|
|
Index pipeline
When you add a connector in 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
Field | Required | Description | Example |
---|---|---|---|
Name of the Data Model |
✅ |
|
|
Index Pipeline |
✅ |
|
|
Query Pipeline |
✅ |
|
|
Field Name |
✅ |
|
|
Required |
✘ |
|
|
Solr Fields ↓ |
|||
Solr Field Name |
✅ |
|
|
Is Query Field |
✘ |
|
|
Enable Phrase Match |
✘ |
|
|
Boost Value |
✘ |
|
|
Phrase Boost |
✘ |
|
|