Contains methods to create, change and handle the current Elasticsearch index.
More...
Contains methods to create, change and handle the current Elasticsearch index.
◆ ElasticsearchIndexMapper()
SemanticSearchImplementation.ElasticsearchIndexMapper.ElasticsearchIndexMapper |
( |
RdfClient |
RDFClient, |
|
|
IDictionary< string, string > |
mapping = null |
|
) |
| |
|
inline |
◆ CreateIndex()
JObject SemanticSearchImplementation.ElasticsearchIndexMapper.CreateIndex |
( |
string |
alias = null | ) |
|
|
inline |
Creates the JSON object which contains all information (settings, mappings and aliases) for a new index.
- Parameters
-
alias | The name of the alias if it should be set directly at the beginning (only in case of initial indexing). |
- Returns
- A JSON object for the request to create a new index.
◆ CreateLabelOfProperty()
string SemanticSearchImplementation.ElasticsearchIndexMapper.CreateLabelOfProperty |
( |
string |
property | ) |
|
|
inlineprivate |
Creates the label of a property.
- Parameters
-
property | The property as URI. |
- Returns
- The created label.
◆ CreateLabelOfProps()
IDictionary<string, string> SemanticSearchImplementation.ElasticsearchIndexMapper.CreateLabelOfProps |
( |
IEnumerable< string > |
properties | ) |
|
|
inlineprivate |
Creates the labels (field names) for all properties.
- Parameters
-
properties | An enumerator containing all properties (metadata fields) as URIs. |
- Returns
- A dictionary containing properties (key) and corresponding labels (value).
◆ CreateTypeOfProps()
IDictionary<string, string> SemanticSearchImplementation.ElasticsearchIndexMapper.CreateTypeOfProps |
( |
IEnumerable< string > |
properties | ) |
|
|
inlineprivate |
Creates the type for all properties.
- Parameters
-
properties | An enumerator containing all properties (metadata fields) as URIs. |
- Returns
- A dictionary containing properties (key) and corresponding type (value).
◆ GetLabelOfProperty()
string SemanticSearchImplementation.ElasticsearchIndexMapper.GetLabelOfProperty |
( |
string |
property | ) |
|
|
inline |
◆ GetSearchType()
string SemanticSearchImplementation.ElasticsearchIndexMapper.GetSearchType |
( |
ApplicationProfileType |
type | ) |
|
|
inline |
Maps application profile type to corresponding Elasticsearch type.
- Parameters
-
type | The application profile type. |
- Returns
- An Elasticsearch type.
◆ GetTypeOfProperty()
string SemanticSearchImplementation.ElasticsearchIndexMapper.GetTypeOfProperty |
( |
string |
property | ) |
|
|
inline |
◆ ReplaceMapping()
void SemanticSearchImplementation.ElasticsearchIndexMapper.ReplaceMapping |
( |
IDictionary< string, string > |
mapping | ) |
|
|
inline |
Replaces the current mapping.
At first the mappig contains the uniformly generated data types based on the application profiles, later the types of Elasticsearch.
- Parameters
-
◆ _generalAdditionalTripleLabels
readonly IDictionary<string, string> SemanticSearchImplementation.ElasticsearchIndexMapper._generalAdditionalTripleLabels |
|
private |
Initial value:= new Dictionary<string, string>()
{
}
◆ _labelOfProperties
readonly IDictionary<string, string> SemanticSearchImplementation.ElasticsearchIndexMapper._labelOfProperties |
|
private |
◆ _properties
readonly IEnumerable<string> SemanticSearchImplementation.ElasticsearchIndexMapper._properties |
|
private |
◆ _RDFClient
readonly RdfClient SemanticSearchImplementation.ElasticsearchIndexMapper._RDFClient |
|
private |
◆ _typeOfProperties
IDictionary<string, string> SemanticSearchImplementation.ElasticsearchIndexMapper._typeOfProperties |
|
private |
◆ BOOLEAN
const string SemanticSearchImplementation.ElasticsearchIndexMapper.BOOLEAN = "boolean" |
|
static |
◆ BOOLEAN_EXTENSION
const string SemanticSearchImplementation.ElasticsearchIndexMapper.BOOLEAN_EXTENSION = "_written" |
|
static |
◆ DATE
const string SemanticSearchImplementation.ElasticsearchIndexMapper.DATE = "date" |
|
static |
◆ DAY_EXTENSION
const string SemanticSearchImplementation.ElasticsearchIndexMapper.DAY_EXTENSION = "_day" |
|
static |
◆ DEFAULT_ALIAS_NAME
const string SemanticSearchImplementation.ElasticsearchIndexMapper.DEFAULT_ALIAS_NAME = "final_index" |
|
static |
◆ INTEGER
const string SemanticSearchImplementation.ElasticsearchIndexMapper.INTEGER = "integer" |
|
static |
◆ KEYWORD
const string SemanticSearchImplementation.ElasticsearchIndexMapper.KEYWORD = "keyword" |
|
static |
◆ LABEL_APPLICATION_PROFILE
const string SemanticSearchImplementation.ElasticsearchIndexMapper.LABEL_APPLICATION_PROFILE = "applicationProfile" |
|
static |
◆ LABEL_BELONGS_TO_PROJECT
const string SemanticSearchImplementation.ElasticsearchIndexMapper.LABEL_BELONGS_TO_PROJECT = "belongsToProject" |
|
static |
◆ LABEL_GRAPHNAME
const string SemanticSearchImplementation.ElasticsearchIndexMapper.LABEL_GRAPHNAME = "graphName" |
|
static |
◆ LABEL_IS_PUBLIC
const string SemanticSearchImplementation.ElasticsearchIndexMapper.LABEL_IS_PUBLIC = "isPublic" |
|
static |
◆ MONTH_EXTENSION
const string SemanticSearchImplementation.ElasticsearchIndexMapper.MONTH_EXTENSION = "_month" |
|
static |
◆ TEXT
const string SemanticSearchImplementation.ElasticsearchIndexMapper.TEXT = "text" |
|
static |
◆ YEAR_EXTENSION
const string SemanticSearchImplementation.ElasticsearchIndexMapper.YEAR_EXTENSION = "_year" |
|
static |
The documentation for this class was generated from the following file: