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
93
votes
5 answers

Filter items which array contains any of given values

I have a set of documents like { tags:['a','b','c'] // ... a bunch properties } As stated in the title: Is there a way to filter all documents containing any of given tags using Nest ? For instance, the record above would match…
Olivier
  • 5,578
  • 2
  • 31
  • 46
80
votes
10 answers

Get raw query from NEST client

Is it possible to get the raw search query from the NEST client? var result = client.Search(s => s .AllIndices() .Type("SomeIndex") .Query(query => query .Bool(boolQuery…
Mark Walsh
  • 3,241
  • 1
  • 24
  • 46
53
votes
6 answers

JEST - SyntaxError: Unexpected token 'export' with uuid library

I used to solve similar errors while I was using Jest with only JavaScript, but currently I'm not able to do so with Typescript. All my tests were running fine until I installed Puppeteer which requires @types/jest-environment-puppeteer,…
damdafayton
  • 1,600
  • 2
  • 10
  • 19
32
votes
5 answers

How do I update an existing document inside ElasticSearch index using NEST?

I am trying to update an existing indexed document. I have indexed tags, title and owners field. Now when the user changes the title, I need to find and update the document inside the index. Should I update and replace the entire document or just…
kheya
  • 7,546
  • 20
  • 77
  • 109
23
votes
3 answers

NEST Conditional filter query with multiple terms

I would like to do a ElasticSearch query like this: { "query" : { "bool" : { "filter" : [ { "terms" : { "name" : ["name1", "name2"] …
dhrm
  • 14,335
  • 34
  • 117
  • 183
19
votes
1 answer

NEST: How to query against multiple indices and handle different subclasses (document types)?

I’m playing around with ElasticSearch in combination with NEST in my C# project. My use case includes several indices with different document types which I query separately so far. Now I wanna implement a global search function which queries against…
Mani
  • 783
  • 1
  • 9
  • 19
18
votes
1 answer

Bulk Update on ElasticSearch using NEST

I am trying to replacing the documents on ES using NEST. I am seeing the following options are available. Option #1: var documents = new List(); `var blkOperations = documents.Select(doc => new…
Sasi
  • 279
  • 1
  • 3
  • 12
18
votes
2 answers

How to disable camel casing Elasticsearch field names in NEST?

By default, NEST will camel case object and property names when sending an object to Elasticsearch for indexing. How can camel casing field names be disabled in NEST for Elasticsearch documents? I've done a fair amount of research and there's a…
Ellesedil
  • 1,576
  • 1
  • 20
  • 44
18
votes
5 answers

ElasticSearch and NEST: How do you purge all documents from an index?

I know how to delete an entire ElasticSearch index, but how do you purge all documents from an index? My Motivation: I'd like to have a "ReIndex" method that purges the entire contents of an index so that I can reload all documents. ElasticSearch…
Jim G.
  • 15,141
  • 22
  • 103
  • 166
18
votes
3 answers

Exclude property from being indexed

I have created below object which will be mapped to ElasticSearch type. I would like to exclude the UnivId property from being indexed: [ElasticType(Name = "Type1")] public class Type1 { // To be ignored public string UnivId { get; set; } …
vish.Net
  • 962
  • 2
  • 10
  • 21
17
votes
3 answers

NestJS | Passport: TypeError: Cannot read properties of undefined (reading 'logIn')

Situation: Developing api in nest & grapqhql Worked on one laptop, everything was working well Then cloned my repo on other laptops, installed dependencies, created a new local database. App is being built with no errors When following…
Gleb Gaiduk
  • 363
  • 4
  • 13
17
votes
9 answers

How do you debug your Nest queries?

I'm new to Nest, and I very likely am not creating my query like I think I am. My question is more along the lines of teach a man to fish rather than give me a fish. However, I'll use my current problem as an example. I have several documents in…
Berin Loritsch
  • 11,400
  • 4
  • 30
  • 57
17
votes
1 answer

Case insensitivity does not work

I cant figure out why my searches are case sensitive. Everything I've read says that ES is insensitive by default. I have mappings that specify the standard analyzer for indexing and search but it seems like some things are still case sensitive -…
Jonesie
  • 6,997
  • 10
  • 48
  • 66
16
votes
3 answers

ElasticSearch Search query is not case sensitive

I am trying to search query and it working fine for exact search but if user enter lowercase or uppercase it does not work as ElasticSearch is case insensitive. example { "query" : { "bool" : { "should" : { …
Rohit
  • 327
  • 1
  • 3
  • 7
16
votes
3 answers

Kibana Alternatives

I am having an issue in kibana. It does not show any results in the Discover tab. Please look here for more information. Do we have any Kibana alternatives that the community has used? I searched on the internet and I could find only Head…
Ajit Goel
  • 4,180
  • 7
  • 59
  • 107
1
2 3
99 100