ISolrFields.AddField

Fore Syntax

AddField(Id: String; Type: SolrFieldType): ISolrField;

Fore.NET Syntax

AddField(Id: String; Type: Prognoz.Platform.Interop.BISearchSolrFieldType): Prognoz.Platform.Interop.BISearchISolrField;

Parameters

Id. Identifier of the field being added.

Type. Type of added field.

Description

The AddField method adds field to the collection according to the specified parameters.

Comments

The list of fields which are used on indexing and search is determined in configuration file. Taking into account the fact that there is no direct access to the Apache Solr configuration files from Fore to modify list of fields it is necessary to edit the files manually. For more details about changing of the list of fields see theSystem and Custom Fieldssubsection.

The AddField method is used, if parameters of required custom fields are known and if they are absent in search service settings.

To auto synchronize list of fields in the Solr instance settings according to the configuration file, use the ISolrSearchEngineSchema.FillSchemaOptions method.

Example

The example of use is given in description of the ISolrSearchEngineSchema.Fields property.

See also:

ISolrFields