Questions tagged [elasticsearch-net]

Repository for both Elasticsearch.Net and NEST, the two official elasticsearch .NET clients.

  • low-level client that provides a one-to-one mapping with the Elasticsearch REST API.
  • No dependencies
  • Almost completely generated from the official REST API spec which makes it easy to keep up to date
  • Comes with an integration test suite that can be generated from the YAML test definitions that the Elasticsearch core team uses to test their REST API
  • Has no opinions on how you create or consume requests and responses
  • Load balancing and cluster failover support *All calls have async variants

Home page for both Elasticsearch.Net and NEST, the two official elasticsearch .NET clients, can be found here.

Source code repository is here.

261 questions
1
vote
1 answer

Elastic Search - Nest Boolean Field Mapping

when I create schema mapping using NEST with my type am getting following exception from ElasticSearch. public class MyClass{ { ..... [ElasticProperty(Index = FieldIndexOption.NotAnalyzed, IncludeInAll =…
Sasi
  • 279
  • 1
  • 3
  • 12
1
vote
0 answers

ElasticSearch.Net - Remove index in a bulk query

I'm implementing a reindexing operation, which takes all of the elements from a certain set and adds them into the index, replacing the old content of the index (or created index if it's empty). To achieve that I use the Elasticsearch bulk query,…
Slowacki
  • 480
  • 7
  • 20
1
vote
1 answer

how to use two parallel Aggregation for elasticsearch nest

Like bellow http request: base on TERM "service_project" aggr, there are 2 another SUM aggr "service_hour_price" and "servic_part_price". Can I use Elasticsearch Nest do the same thing? "aggs": { "3": { "terms": { …
rmrf100
  • 71
  • 1
  • 10
1
vote
2 answers

Elasticsearch aggregation. Order by nested bucket doc_count

What I want to achieve is aggregation by unique pairs (city, STATE). As per Elasticsearch documentation The terms aggregation does not support collecting terms from multiple fields in the same document. Thus I created a nested agg like this: { …
IUnknown
  • 335
  • 1
  • 11
1
vote
0 answers

Sort inside of a query or filter in elasticsearch

I am using elasticsearch.net client. I query something with pagination. But it returns documents according to sorting criteria not query criteria.It is like it ignores the query just works with sorting. Thing is I want to sort all documents then…
ozzimpact
  • 111
  • 8
1
vote
1 answer

Terms aggregation based on child collection property

I have the following document article { title: "Some title", authors: [ { LastName: "Smith", Country: "US"}, { LastName: "Smith", Country: "UK"}, ] } I want to add a terms aggregator to the search based on the property…
Hernan
  • 493
  • 4
  • 23
1
vote
1 answer

NEST is adding TimeZone while indexing docs in Elasticsearch

I have a DateTime field in my c# class as below public DateTime PassedCreatedDate { get; set; } While indexing it from NEST to elasticssearch, it is saving it along with local timezone. How to avoid this? "PassedCreatedDate":…
Shivang MIttal
  • 990
  • 1
  • 14
  • 36
1
vote
2 answers

webClient Exception in .net

I simply request(to elasticsearch) in browser fine: in .Net, I want to post same request and expected to get json data seem in pic above, but here is the exception.: What is the point of this failure?
user4005632
1
vote
0 answers

Nest (Elasticsearch) creating autocomplete

I have a service that indexes files. Any document is like this: [ElasticType(IdProperty = "r_object_id", Name = "dm_document")] public class dm_document { public string r_object_id { get; set; } public string i_chronicle_id { get; set;…
Kiwi
  • 2,713
  • 7
  • 44
  • 82
1
vote
0 answers

search capability using ElasticSearch and NEST Client in asp.net web api

I am creating a asp.net webapi application with a search capability using elastisSearch ( id="Elasticsearch.Net" version="1.5.0" targetFramework="net45") and NESTclient (id="NEST" version="1.5.0" targetFramework="net45"). I have managed to get basic…
1
vote
2 answers

Nest elastic search.net not returning any results via any query

I've created an index in sense which I'm happy with and am trying to implement a typed query in the NEST client as follows: var node = new Uri("http://elasticsearch-blablablamrfreeman"); var settings = new ConnectionSettings(node) …
notsoobvious
  • 175
  • 1
  • 9
1
vote
1 answer

Does Nest.ConnectionSettings.SetJsonSerializerSettingsModifier even work?

Here is my question. Due to project needs, we have to keep our dates within elasticsearch index in the same format. What we've tried is the next way - var connectionPool = new SniffingConnectionPool(nodeList); var…
Kiryl
  • 1,416
  • 9
  • 21
1
vote
1 answer

Attribute based index hints change my results

I have this query that hasn't changed since I first got it working: ISearchResponse response = await IndexManager.GetClient() .SearchAsync(r => r .Filter(f => f.Term(t => t.ReleasableTo.First(), Role.Visitor)) …
Berin Loritsch
  • 11,400
  • 4
  • 30
  • 57
1
vote
0 answers

What would cause IMultisearchResponse's ConnectionStatus.Request to be null?

I'm cross posting this question from an issue I made on Github. I am trying to log the requests I am making to better debug some internal issues, and apparently after performing an var results = await _client.MultiSearchAsync(...), sometimes…
Phil Barresi
  • 1,355
  • 1
  • 14
  • 30
1
vote
1 answer

elasticsearch NEST wildcard field

Is there a way to have NEST support wildcard fields. For example. I have a class like this: public class SearchDocument { public string Id { get; set; } public string Symbol { get; set; } public IList
Asher
  • 53
  • 1
  • 6