import SearchIndex from "@arcgis/core/rest/knowledgeGraph/SearchIndex.js";const SearchIndex = await $arcgis.import("@arcgis/core/rest/knowledgeGraph/SearchIndex.js");- Inheritance
- SearchIndex→
Accessor
- Since
- ArcGIS Maps SDK for JavaScript 4.26
Defines a search index for a KnowledgeGraph.
- Example
- //structure of a search index in a knowledge graph data model.{"analizers": [{"name": "text_en"}],"name": "esri__search_idx","searchProperties": [{"key": "Supplier","value": {"propertyNames": ["name","EmployeeCount","globalid"]}},{"key": "buys_part","value": {"propertyNames": ["quantity","globalid"]}},{"key": "Part","value": {"propertyNames": ["name","globalid"]}}],"supportedCategory": "Both"}
Constructors
Constructor
Constructor
Parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| properties | | |
See the properties table for a list of all the
properties that may be passed into the constructor.
Properties
Any properties can be set, retrieved or listened to. See the
Watch for changes
topic.
| Property | Type | Class |
|---|---|---|
| readonly | | |
| readonly inherited | ||
| readonly | | |
| readonly | | |
| readonly | |
analyzers
readonly Property
- Type
- SearchIndexAnalyzer[]
Additional analyzers for string processing during search such as support for languages.
searchProperties
readonly Property
- Type
- Map<string, SearchProperties>
A map of the named types and their properties that are included in the search index.
Type definitions
SearchProperties
Type definition
Search properties.
propertyNames
Property
- Type
- string[]
The properties of the named type that are included in the search index.