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
0
votes
0 answers

Elasticsearch, Nest - Automap with Enabled=false creates .Chars and .Length fields

I use Nest Client for creating mapping and indexing data to Elasticsearch. I am facing now a problem which I don't understand how it comes. I use AutoMap() for mapping the object structure to index var esClient = _esClientProvider.GetClient(); var…
hintdesk
  • 1
  • 1
0
votes
0 answers

NEST: Using RequestResponseSerializer to deserialize to MultiSearchResponse

I'm using NEST to send a manual query to the multisearch API, with the body as NDJSOn as docuemnted in Elastic's docs: var query = @" ... "; StringResponse response = await _elastic.LowLevel.MultiSearchAsync(indexName,…
0
votes
1 answer

how to store array of obejct in prisma orm

i am working on prisma orm and nest js. i want to store the array of object in the prisma. any body know how to dot it?? this is my prisma model model User { id String @id @default(uuid()) firstName String lastName String …
0
votes
0 answers

Elasticsearch Run multiple templated searches returns null using NEST

I am trying perform a multi-template search using NEST, and then read the reponses, but seems like it always returns null when I try to cast it to the POCO type. Running the below query in Kibana works as expected. GET…
R4nc1d
  • 2,923
  • 3
  • 24
  • 44
0
votes
0 answers

how I can map enum in CreateIndexDescriptor method that from Nest library-ElasticSearch

I create my map service for City entity. City entity is like this; public string Id { get; set; } public DateTime CreateDate { get; set; } public string Name { get; set; } public string LocalName { get; set; } public int Population { get; set;…
EsprnzJK
  • 25
  • 5
0
votes
1 answer

How can I add a request interceptor in a NestJS application to calls made in a certain service?

I have a multi module Nest application in which I use the HttpModule to perform HTTP requests. In one of my services, I send requests to a third-party application that allows a maximum of 3 requests per second. Therefore, I want to add a request…
O. Hal
  • 1
  • 3
0
votes
0 answers

Cannot find module '@nestjs/mapped-types' or its corresponding type declarations

Cannot find module '@nestjs/mapped-types' or its corresponding type declarations. I've tried npm i @nestjs/mapped-types yarn add @nestjs/mapped-types yarn add @nestjs/swagger these commands. It works fine my localhost:3000 with npm run start…
0
votes
1 answer

elasticsearch .net client complex query not working

I've got list of objects called selected which is this shape: List<{bool Selected, String Discriminator, List Tags}>. I need to say if document.VgnItm.Discriminator is one of selected[index].Discriminator, AND document.VgnItm.Tags has at least…
BeniaminoBaggins
  • 11,202
  • 41
  • 152
  • 287
0
votes
0 answers

ElasticSearch NEST - Search Query Not Returning Expected Results

I'm working on a project that searches parts using ElasticSearch and NEST (7.x). Here's my Model (adjusted for simplicity): [ElasticsearchType] public class PartInfo { public string Make { get; set; } public string PartNo…
Michael
  • 507
  • 5
  • 20
0
votes
1 answer

Sorting group collection after query with aggregate

I use aggregate to get all users have same name, but whenever I query to this API, the results return are not sorted even thought I add $sort by 'name' field. const aggregateQuery: any = [ { $group: { _id: '$name', count: { $sum: 1 },…
John
  • 3
  • 1
0
votes
0 answers

NestJS Endpoint flow mapping

I have an API in NestJS, which uses the Controller > Services > Repositories simple architecture. However, in this environment, I have several services that are called only once, directly by a controller. And I have other services that are…
0
votes
0 answers

I want to find difference between expiry time and and current time of QRcode generation and qrcode verification time. 2min exp time and store in db

` //I m using prisma in nest js //QRcode generate and store in the db(mysql) const date = new Date(); // create a new date object const expiryDate = new Date().getTime()+ 120000; // add 120 seconds to the date // insert data for qrcode let…
0
votes
0 answers

Checkpassword is not function

[Nest] 19432 - 06.05.2023 23:05:18 ERROR [ExceptionsHandler] user.checkPassword is not a function TypeError: user.checkPassword is not a function at UserService.findByEmailAndPassword…
0
votes
0 answers

Got an error while using insertion type in the typescript

I was trying to develop the backend for my website and while creating a custom type to include the property token in the createUserType I got an error stating Type 'createUserType' is not assignable to type 'userType'. Property 'token' is missing in…
0
votes
1 answer

C# Elastic Search retrieving data with NEST

I'm pretty new to Elastic Search / NEST and need some help with how to be able to query/filter my data. I am trying to retire data from Elastic Search using NEST. Even though I am getting the correct count of data it has not mapped to the model…