London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!

Class AddCommand<T>

Inheritance
System.Object
AddCommand<T>
Implements
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: SolrNet.Commands
Assembly: Solrnet.dll
Version: 13.30.0
Syntax
public class AddCommand<T> : ISolrCommand
Type Parameters
Name Description
T

Constructors

AddCommand(IEnumerable<T>, ISolrDocumentSerializer<T>)

Declaration
public AddCommand(IEnumerable<T> documents, ISolrDocumentSerializer<T> serializer)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<T> documents
ISolrDocumentSerializer<T> serializer

AddCommand(IEnumerable<KeyValuePair<T, Nullable<Double>>>, ISolrDocumentSerializer<T>)

Declaration
public AddCommand(IEnumerable<KeyValuePair<T, double?>> documents, ISolrDocumentSerializer<T> serializer)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<T, System.Nullable<System.Double>>> documents
ISolrDocumentSerializer<T> serializer

Methods

ConvertToXml()

Declaration
public string ConvertToXml()
Returns
Type Description
System.String

Execute(ISolrConnection)

Declaration
public string Execute(ISolrConnection connection)
Parameters
Type Name Description
ISolrConnection connection
Returns
Type Description
System.String

RemoveControlCharacters(String)

Declaration
public string RemoveControlCharacters(string xml)
Parameters
Type Name Description
System.String xml
Returns
Type Description
System.String

Implements