public DefaultFacetQuerySerializer(ISolrQuerySerializer querySerializer, ISolrFieldSerializer fieldSerializer) { serializer = new AggregateFacetQuerySerializer(new ISolrFacetQuerySerializer[] { new SolrFacetQuerySerializer(querySerializer), new SolrFacetDateQuerySerializer(fieldSerializer), new SolrFacetFieldQuerySerializer(), }); }
public DefaultQuerySerializer(ISolrFieldSerializer fieldSerializer) { serializer = new AggregateQuerySerializer(new ISolrQuerySerializer[] { new QueryByFieldSerializer(), new LocalParamsSerializer(this), new BoostQuerySerializer(this), new HasValueQuerySerializer(this), new NotQuerySerializer(this), new QueryInListSerializer(this), new NullableDateTimeRangeQuerySerializer(fieldSerializer), new DateTimeRangeQuerySerializer(fieldSerializer), new RangeQuerySerializer(fieldSerializer), new MultipleCriteriaQuerySerializer(this), new SelfSerializingQuerySerializer(), }); }
internal static string SerializeToSolr(this object value, ISolrFieldSerializer serializer) { if (serializer == null) { throw new ArgumentNullException(nameof(serializer)); } if (value == null) { return(null); } if (serializer.CanHandleType(value.GetType())) { return(serializer.Serialize(value).First().FieldValue); } throw new InvalidOperationException($"Unable to serialize '{value}'."); }
public RangeQuerySerializer(ISolrFieldSerializer fieldSerializer) { this.fieldSerializer = fieldSerializer; }
public SolrFacetDateQuerySerializer(ISolrFieldSerializer fieldSerializer) { this.fieldSerializer = fieldSerializer; }
public NullableDateTimeRangeQuerySerializer(ISolrFieldSerializer fieldSerializer) { this.fieldSerializer = fieldSerializer; }
/// <summary> /// Wraps a <see cref="ISolrFieldSerializer"/> making it support the corresponding <see cref="Nullable{T}"/> type /// </summary> public NullableFieldSerializer(ISolrFieldSerializer serializer) { this.serializer = serializer; }
public SolrDocumentSerializer(IReadOnlyMappingManager mappingManager, ISolrFieldSerializer fieldSerializer) { this.mappingManager = mappingManager; this.fieldSerializer = fieldSerializer; }
public GenericDictionaryFieldSerializer(ISolrFieldSerializer serializer) { this.serializer = serializer; }
public NullableFieldSerializer(ISolrFieldSerializer serializer) { this.serializer = serializer; }
public KeyValuePairSerializer(ISolrFieldSerializer defaultFieldSerializer) { _fieldSerializer = defaultFieldSerializer; }
/// <summary> /// Serializes <see cref="SolrFacetIntervalQuery"/> /// </summary> public SolrFacetIntervalQuerySerializer(ISolrFieldSerializer fieldSerializer) { this.fieldSerializer = fieldSerializer; }
/// <summary> /// Serializes 1-dimensional collections /// </summary> public CollectionFieldSerializer(ISolrFieldSerializer valueSerializer) { this.valueSerializer = valueSerializer; }
public CollectionFieldSerializer(ISolrFieldSerializer valueSerializer) { this.valueSerializer = valueSerializer; }
public SolrDictionarySerializer(ISolrFieldSerializer serializer) { this.serializer = serializer; }