Questions tagged [nest]

NEST is a .NET client for elasticsearch

NEST aims to be a .NET client with a very concise API. Its main goal is to provide a solid strongly typed Elasticsearch client. It also has string/dynamic overloads for more dynamic use cases. Click here for more info about this project.

In terms of computational neuroscience, NEST is a simulator for spiking neural network models that focuses on the dynamics, size and structure of neural systems rather than on the exact morphology of individual neurons. Click here for further information or resources.

3119 questions
16
votes
4 answers

Scroll example in ElasticSearch NEST API

I am using .From() and .Size() methods to retrieve all documents from Elastic Search results. Below is sample example - ISearchResponse bResponse = ObjElasticClient.Search(s =>…
Sameer Deshmukh
  • 1,339
  • 4
  • 13
  • 20
16
votes
1 answer

How do I map a single .NET type to multiple nested object types in ElasticSearch/NEST?

I'm using the NEST library to interact with ElasticSearch, and I'm trying to figure out a way to build index types/nested objects based on non-type data. The type has the following basic structure. public class Entity : DynamicObject { …
Erick T
  • 7,009
  • 9
  • 50
  • 85
15
votes
5 answers

is there a way to deserialize Elasticsearch Nest search query?

upon building my Elasticsearch query using Nest, i want to be able to see the JSON version of what's being sent to Elasticsearch. is this possible? some sort of deserializer i suppose. here's the info for my follow up question: { "_infer": { …
bigerock
  • 713
  • 1
  • 9
  • 29
14
votes
1 answer

ElasticSearch NEST Search Multiple Types & All Fields

Using ElasticSearch NEST, I am having trouble getting expected results back from my queries. My index/type layout is as follows: theatres (index) event (types) theatre promotion generic content Each of those types have their own fields, and I…
Matt Millican
  • 4,044
  • 4
  • 38
  • 55
14
votes
1 answer

Filling the gaps in D3 array nesting

I have an array or objects consisting of a date and some values: var flatData = [ { "date": "2012-05-26", "product": "apple" }, { "date": "2012-07-03", "product": "orange" }, ... ] I am trying to use d3.nest() to get a count of these…
Naresh
  • 23,937
  • 33
  • 132
  • 204
13
votes
1 answer

Elasticsearch.NET version 7 - How to Create Index

In Elasticsearch.NET 6.x, it is possible create an index using IElasticClient method: var response = elasticClient.Create( "my-index-name", index => index .Mappings( ms =>…
Nenad
  • 24,809
  • 11
  • 75
  • 93
13
votes
5 answers

How to sync MSSQL to Elasticsearch?

Every time I Google this, I find the "river" approach which is deprecated. I'm using Dapper if this is somehow a helpful information. So what's the solution for this these days?
tedi
  • 6,350
  • 5
  • 52
  • 67
13
votes
2 answers

Elasticsearch search query to retrieve all records NEST

I have few documents in a folder and I want to check if all the documents in this folder are indexed or not. To do so, for each document name in the folder, I would like to run through a loop for the documents indexed in ES and compare. So I want to…
ASN
  • 1,655
  • 4
  • 24
  • 52
13
votes
1 answer

ElasticSearch Order By String Length

I am using ElasticSearch via NEST c#. I have large list of information about people { firstName: 'Frank', lastName: 'Jones', City: 'New York' } I'd like to be able to filter and sort this list of items by lastName as well as order by the…
mvcNewbie
  • 520
  • 1
  • 11
  • 23
12
votes
2 answers

Elasticsearch.Net.UnexpectedElasticsearchClientException during deserilize result

I have a c# project which i want send a request to my elastic search server. this is my connection and elastic search client : ConnectionSettings connectionSettings; ElasticClient elasticClient; connectionSettings = new ConnectionSettings(new…
Keivan
  • 173
  • 2
  • 12
12
votes
2 answers

Elasticsearch, Nest and Lucene.net

I know that Elasticsearch is based on Lucene but I wonder if Elasticsearch gives me any benefits developing a search engine rather than coding with Lucene.Net directly. Sorry, If question is a bit simple but I am confusing after searching the…
Emil
  • 6,411
  • 7
  • 62
  • 112
12
votes
1 answer

Index a dynamic object using NEST

I am building an API application that essentially allows a user to build a document, which can be structured however they want, that will be stored in Elasticsearch. Essentially, I'm providing a simple interface for users to access our Elasticsearch…
Ellesedil
  • 1,576
  • 1
  • 20
  • 44
12
votes
2 answers

How to write date range query in Nest ElasticSearch client?

I have a .Net application trying to fetch data from an elasticsearch document store, having records in the following structure: { "_index": "TestIndex", "_type": "amqp", "_id": "123", "_source": { "@timestamp":…
Chrysalis
  • 4,130
  • 2
  • 21
  • 23
12
votes
6 answers

Sorting on Multiple Fields

Does Nest support sorting on multiple fields? For example, say I want to sort first by FieldA ascending and then by FieldB descending. My current approach looks something like this: searchDescriptor.Sort(s…
user3749920
  • 123
  • 1
  • 1
  • 4
12
votes
2 answers

Static Query Building with NEST

I'm playing around with Elasticsearch and NEST. I do have some trouble understanding the various classes and interfaces which can be used to create and build static queries. Here's a simplified example of what I want to achieve: using Nest; using…
Roemer
  • 2,012
  • 1
  • 24
  • 26