ElasticSearchQuery 0.1.9

Simple IQueryable implementation for Elasticsearch

Install-Package ElasticSearchQuery -Version 0.1.9
dotnet add package ElasticSearchQuery --version 0.1.9
<PackageReference Include="ElasticSearchQuery" Version="0.1.9" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add ElasticSearchQuery --version 0.1.9
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: ElasticSearchQuery, 0.1.9"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install ElasticSearchQuery as a Cake Addin
#addin nuget:?package=ElasticSearchQuery&version=0.1.9

// Install ElasticSearchQuery as a Cake Tool
#tool nuget:?package=ElasticSearchQuery&version=0.1.9
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

ElasticsearchQuery

Its a simple IQueryable implementation for Elasticsearch built with Netstandard 2.0.

Usage


var client = new ElasticClient();
var query = ElasticSearchQueryFactory.CreateQuery<Product>(client);

See the Test project for the queries currently supported.

Custom Index/Type Mapping


ElasticQueryMapper.Map(typeof(Product), indexName, indexType);

Suported Nest Versions

Version 0.1.5 Supports ElasticSearch 7.X

Version 0.1.4 and lower Supports ElasticSearch 6.0.0 - 6.6.0

TODO

Add Custom Map for properties (Columns names / Types).

Add better support for fulltext queries.

Improve support for linq queries.

Latest Work

Added support to MatchPhrase FullText Query

Added support to MultiMatch FullText Query

Added support to Exists Query

Support to ElasticSearch 7.X

Added Count support.

Added support for TermsQuery (collections contains methods)

Added Custom Map for class (Index/Type names).

Added Take and Skip support.

Added OrderBy support.

Under development

We have some improvements and implementations to do.
Any help is welcome

More About Elasticsearch

https://www.elastic.co/guide/en/elasticsearch/reference/current/index.html

ElasticsearchQuery

Its a simple IQueryable implementation for Elasticsearch built with Netstandard 2.0.

Usage


var client = new ElasticClient();
var query = ElasticSearchQueryFactory.CreateQuery<Product>(client);

See the Test project for the queries currently supported.

Custom Index/Type Mapping


ElasticQueryMapper.Map(typeof(Product), indexName, indexType);

Suported Nest Versions

Version 0.1.5 Supports ElasticSearch 7.X

Version 0.1.4 and lower Supports ElasticSearch 6.0.0 - 6.6.0

TODO

Add Custom Map for properties (Columns names / Types).

Add better support for fulltext queries.

Improve support for linq queries.

Latest Work

Added support to MatchPhrase FullText Query

Added support to MultiMatch FullText Query

Added support to Exists Query

Support to ElasticSearch 7.X

Added Count support.

Added support for TermsQuery (collections contains methods)

Added Custom Map for class (Index/Type names).

Added Take and Skip support.

Added OrderBy support.

Under development

We have some improvements and implementations to do.
Any help is welcome

More About Elasticsearch

https://www.elastic.co/guide/en/elasticsearch/reference/current/index.html

Release Notes

See https://github.com/leonardosimoura/ElasticSearchQuery

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
0.1.9 231 1/18/2020
0.1.8 235 12/17/2019
0.1.5 205 10/18/2019
0.1.4 211 9/27/2019
0.1.3 288 5/5/2019
0.1.2 258 5/1/2019
0.1.1 265 4/30/2019
0.1.0 264 4/27/2019