C# Class ElasticLinq.Request.Formatters.SearchRequestFormatter

Formats a SearchRequest into a JSON POST to be sent to Elasticsearch.
Exibir arquivo Open project: CenturyLinkCloud/ElasticLINQ Class Usage Examples

Public Methods

Method Description
SearchRequestFormatter ( IElasticConnection connection, IElasticMapping mapping, SearchRequest searchRequest ) : ElasticLinq.Mapping

Create a new SearchRequestFormatter for the given connection, mapping and search request.

Private Methods

Method Description
Build ( IEnumerable sortOptions ) : Newtonsoft.Json.Linq.JArray
Build ( ElasticLinq.Request.Criteria.BoolCriteria criteria ) : Newtonsoft.Json.Linq.JObject
Build ( ElasticLinq.Request.Criteria.CompoundCriteria criteria ) : Newtonsoft.Json.Linq.JObject
Build ( Highlight highlight ) : Newtonsoft.Json.Linq.JObject
Build ( ICriteria criteria ) : Newtonsoft.Json.Linq.JObject
Build ( ElasticLinq.Request.Criteria.MatchAllCriteria criteria ) : Newtonsoft.Json.Linq.JObject
Build ( ElasticLinq.Request.Criteria.NotCriteria criteria ) : Newtonsoft.Json.Linq.JObject
Build ( PrefixCriteria criteria ) : Newtonsoft.Json.Linq.JObject
Build ( ElasticLinq.Request.Criteria.QueryStringCriteria criteria ) : Newtonsoft.Json.Linq.JObject
Build ( ElasticLinq.Request.Criteria.RangeCriteria criteria ) : Newtonsoft.Json.Linq.JObject
Build ( ElasticLinq.Request.Criteria.RegexpCriteria criteria ) : Newtonsoft.Json.Linq.JObject
Build ( ElasticLinq.Request.Criteria.SingleFieldCriteria criteria ) : Newtonsoft.Json.Linq.JObject
Build ( ElasticLinq.Request.Criteria.TermCriteria criteria ) : Newtonsoft.Json.Linq.JObject
Build ( TermsCriteria criteria ) : Newtonsoft.Json.Linq.JObject
Build ( IFacet facet, long defaultSize ) : JProperty
Build ( IEnumerable facets, long defaultSize ) : JToken
Build ( IFacet facet ) : JToken
Build ( StatisticalFacet statisticalFacet ) : JToken
Build ( ElasticLinq.Request.Facets.TermsFacet termsFacet ) : JToken
Build ( ElasticLinq.Request.Facets.TermsStatsFacet termStatsFacet ) : JToken
Build ( SortOption sortOption ) : object
BuildFieldProperty ( ReadOnlyCollection fields ) : JToken
BuildProperties ( ElasticLinq.Request.Criteria.BoolCriteria criteria ) : IEnumerable
CreateBody ( ) : Newtonsoft.Json.Linq.JObject

Create the Json HTTP request body for this request given the search query and connection.

Format ( System.TimeSpan timeSpan ) : string

Method Details

SearchRequestFormatter() public method

Create a new SearchRequestFormatter for the given connection, mapping and search request.
public SearchRequestFormatter ( IElasticConnection connection, IElasticMapping mapping, SearchRequest searchRequest ) : ElasticLinq.Mapping
connection IElasticConnection The ElasticConnection to prepare the SearchRequest for.
mapping IElasticMapping The IElasticMapping used to format the SearchRequest.
searchRequest SearchRequest The SearchRequest to be formatted.
return ElasticLinq.Mapping