Class SearchFieldListDocumentVisitor
Inheritance
System.Object
SearchFieldListDocumentVisitor
Implements
SolrNet.Impl.ISolrDocumentPropertyVisitor
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: Mediachase.Search.Providers.Solr
Assembly: Mediachase.Search.SolrSearchProvider.dll
Version: 12.17.2Syntax
public class SearchFieldListDocumentVisitor : ISolrDocumentPropertyVisitor
Constructors
SearchFieldListDocumentVisitor(IReadOnlyMappingManager, ISolrFieldParser)
Document visitor that handles generic dictionary properties
Declaration
public SearchFieldListDocumentVisitor(IReadOnlyMappingManager mapper, ISolrFieldParser parser)
Parameters
Type | Name | Description |
---|---|---|
SolrNet.IReadOnlyMappingManager | mapper | |
SolrNet.Impl.ISolrFieldParser | parser |
Methods
CanHandleType(Type)
True if this visitor can handle this Type
Declaration
public bool CanHandleType(Type t)
Parameters
Type | Name | Description |
---|---|---|
System.Type | t |
Returns
Type | Description |
---|---|
System.Boolean |
ConvertTo(String, Type)
Declaration
public object ConvertTo(string s, Type t)
Parameters
Type | Name | Description |
---|---|---|
System.String | s | |
System.Type | t |
Returns
Type | Description |
---|---|
System.Object |
GetKeyToUse(String, String)
Declaration
public string GetKeyToUse(string k, string fieldName)
Parameters
Type | Name | Description |
---|---|---|
System.String | k | |
System.String | fieldName |
Returns
Type | Description |
---|---|
System.String |
GetThisField(Type, String)
Declaration
public KeyValuePair<PropertyInfo, string> GetThisField(Type t, string fieldName)
Parameters
Type | Name | Description |
---|---|---|
System.Type | t | |
System.String | fieldName |
Returns
Type | Description |
---|---|
System.Collections.Generic.KeyValuePair<System.Reflection.PropertyInfo, System.String> |
NewDictionary(Type[])
Creates a new System.Collections.Generic.Dictionary<TKey, TValue>
Declaration
public object NewDictionary(Type[] typeArgs)
Parameters
Type | Name | Description |
---|---|---|
System.Type[] | typeArgs | Key and Value type parameters |
Returns
Type | Description |
---|---|
System.Object |
SetKV(Object, Object)
Sets a key/value in a generic dictionary
Declaration
public void SetKV(object dict, object value)
Parameters
Type | Name | Description |
---|---|---|
System.Object | dict | System.Collections.Generic.Dictionary<TKey, TValue> instance |
System.Object | value | Value value |
Visit(Object, String, XmlNode)
Declaration
public void Visit(object doc, string fieldName, XmlNode field)
Parameters
Type | Name | Description |
---|---|---|
System.Object | doc | |
System.String | fieldName | |
System.Xml.XmlNode | field |
Implements
SolrNet.Impl.ISolrDocumentPropertyVisitor