RemoveById(Id: String): Boolean;
RemoveById(Id: String): Boolean;
Id. Identifier of removed field.
The RemoveById method removes the field from collection by identifier and returns attribute of successful removing.
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 thesubsection.
The RemoveById method is used if any custom fields were removed from configuration file, but it has not been removed yet from search service settings.
To auto synchronize list of fields in the Solr instance settings according to the configuration file, use the ISolrSearchEngineSchema.FillSchemaOptions method.
The example of work with the ISolrFields collection is given in description of the ISolrSearchEngineSchema.Fields property.
See also: