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
11
votes
2 answers

NEST thermostat hot water status and control missing from API

I would like to control Nest thermostat (3rd gen with heatlink) domestic hot water, however the API doesn't seem to be exposing neither it's controls nor it's status (https://developers.google.com/nest/device-access/api/thermostat). As there's…
11
votes
1 answer

ElasticSearch Nest Insert/Update

I have created an index in elastic using the following query: PUT public_site { "mappings": { "page": { "properties": { "url": { "type": "string" }, "title":{ "type": "string" }, …
Andrew Walters
  • 4,763
  • 6
  • 35
  • 49
11
votes
1 answer

ElasticSearch 2.0 Nest Unit Testing with MOQ

I'm having problems creating Unit test for the search using ElasticSearch with Nest. Unit Test var mockSearchResponse = new Mock>(); mockSearchResponse.Setup(x => x.Documents).Returns(_people); var mockElasticClient = new…
Jeff Byers
  • 113
  • 1
  • 5
11
votes
3 answers

NEST Query for exact text matching

I am trying to write a NEST query that should return results based on exact string match. I have researched on web and there are suggestions about using Term, Match, MatchPhrase. I have tried all those but my searches are returning results that…
CSC
  • 1,175
  • 3
  • 11
  • 24
11
votes
2 answers

How to delete several documents by ID in one operation using Elasticsearch Nest

I am building some abstraction functions for my application to call, which will hit elasticsearch through Nest. One of such functions is a Delete(string id) call, which is easy to accomplish. I have done this as follows: public void Delete(string…
Jim
  • 4,509
  • 16
  • 50
  • 80
11
votes
0 answers

Is ElasticSearch on Azure vs the new Azure Search Service more cost-effective?

A current application with roughly 2M records is running on AWS with search functionality provided by the FullText search capabilities of SQL Server. In upgrading the system, the new architecture will reside in Azure Web and Worker roles, however…
ElHaix
  • 12,846
  • 27
  • 115
  • 203
11
votes
5 answers

Creating an index Nest

How would I recreate the following index using Elasticsearch Nest API? Here is the json for the index including the mapping: { "settings": { "analysis": { "filter": { "trigrams_filter": { …
11
votes
2 answers

Returning Raw Json in ElasticSearch NEST query

I'm doing a small research about a client for elastic search in .net and I found that NEST is one of the most supported solutions for this matter. I was looking at Nest's docummentation and I couldn´t find a way to output a raw json from a query and…
pedrommuller
  • 15,741
  • 10
  • 76
  • 126
11
votes
1 answer

NEST mapping of Dictionary

Im trying to use NEST and can´t figure out how to use it together with this class public class Metric { public DateTime Timestamp { get; set; } public Dictionary Measurement { get; set; } } How do i use the new…
guidmaster
  • 113
  • 1
  • 5
10
votes
1 answer

Elasticsearch testing(unit/integration) best practices in C# using Nest

I've been seraching for a while how should I test my data access layer with not a lot of success. Let me list my concerns: Unit tests This guy (here: Using InMemoryConnection to test ElasticSearch) says that: Although asserting the serialized…
johnyka
  • 399
  • 3
  • 15
10
votes
1 answer

Insert aggregation results into an index

The goal is to build an Elasticsearch index with only the most recent documents in groups of related documents to track the current state of some monitoring counters and states. I have crafted a simple Elasticsearch aggregation query: { "size":…
Pragmateek
  • 13,174
  • 9
  • 74
  • 108
10
votes
1 answer

ElasticSearch NEST return specific fields

I'm trying to write a query that will give me back only one of the fields. Right now I'm storing the filePath of a file and the contents of a file and in my search I want to search against the contents, but only return the filePath. I'm starting…
Nived
  • 1,804
  • 1
  • 15
  • 29
10
votes
2 answers

Getting distinct values using NEST ElasticSearch client

I'm building a product search engine with Elastic Search in my .NET application, by using the NEST client, and there is one thing i'm having trouble with. Getting a distinct set of values. I'm search for products, which there are many thousands,…
Bart
  • 103
  • 1
  • 8
10
votes
1 answer

Elastic Search using NEST Field Boosting

I am using Elastic Search in C# using the NEST strongly typed client. I have an index containing Entries: [ElasticType(Name = "Entry", IdProperty = "Id")] public class Entry { public string Id { get; set; } public string Title { get; set; } …
tmortiboy
  • 485
  • 3
  • 10
9
votes
2 answers

How do I delete an Index using NEST 7.4.1?

I am new to Elastic search and I have written code to index a list of City. I am using "elasticsearch head" add-on for chrome to check and manipulate the indexes and _doc. While indexing and CRUD operation of doc is resulting correctly, I had to…
Ashish Gope
  • 320
  • 1
  • 5
  • 13