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
0
votes
1 answer

ElasticSearch.Net - Update array with multiple components

I've got data indexed using ElasticSearch, and I'm having trouble updating a particular field. A snippet of the JSON is as follows: { "_index": "indexName", "_type": "type", "_id": "00001", "colors": [ "red", "green" ] "place":…
helencrump
  • 1,351
  • 1
  • 18
  • 27
0
votes
1 answer

Elastic Search: Modelling data containing variable fields

I need to store data that can be represented in JSON as follows: Article{ Id: 1, Category: History, Title: War stories, //Comments could be pretty long and also be changed frequently Comments: "Nice narration, Reminds me of the…
labyrinth
  • 1,104
  • 3
  • 11
  • 32
0
votes
1 answer

NEST: How can I do different operations and mapping types in one bulk request?

I have a list of "event" objects. Each event has its operation (delete, update, index, etc), its mapping type (document, folder, etc.), and the actual content to be indexed into Elasticsearch, if any. I don't know what any of these operations will…
0
votes
1 answer

NoShardAvailableException after starting the Elasticsearch.bat

I have started elasticsearch.bat and I completed first indexing using Nest ElasticClient.Index query. Then I made my first query using var results = ElasticClient.Search(body => body.Query(query => query.QueryString(qs =>…
Emil
  • 6,411
  • 7
  • 62
  • 112
0
votes
1 answer

Elasticsearch.net NEST Bool Query not generating expected request

I'm attempting to create an Elasticsearch query in NEST which uses the Bool query, but everything I put inside the Bool method seems to get ignored. This is the code I've tried: var query = "my query"; var fileType = "Poster"; var searchResults =…
Sam
  • 4,994
  • 4
  • 30
  • 37
0
votes
0 answers

Elasticsearch get keywords

i'm trying to find all the keywords in an index. This is for doing an auto complete on a word while typing. but how would you set up that filter? or do I need to map this with the index? note: I don't want to autocomplete on a file full result name …
Kiwi
  • 2,713
  • 7
  • 44
  • 82
0
votes
1 answer

Create memory index with Elasticsearch.net

I try to create memory index with following code but it creates regular index. Any idea? var node = new Uri("http://localhost:9200"); var settings = new ConnectionSettings(node); var client = new…
0
votes
1 answer

How to pass an object to "Origin" method in NEST (FunctionScore query)?

I am trying to create a function_score elasticsearch query using NEST (gauss function), and have a geo point object to pass as the 'origin', however the "Origin" method in NEST accepts only a string, a result elasticsearch can't parse the…
Socardo
  • 520
  • 6
  • 14
0
votes
0 answers

specifying highlight fields at runtime in elasticsearch Nest library

in NEST library of ElasticSearch for NET, we can highlight on somefields.staticly we can determine highlightin fields in code. but in this case we cannot specify highligh terms at Runtime to allow user to select highlighting fields. How can i…
user2352554
  • 521
  • 4
  • 17
0
votes
0 answers

Elasticsearch bulk manual index refreshing

Currently my index has this option: { "index" : { "refresh_interval" : "-1" } } Which should mean that index needs to be manually refreshed once data has been pushed into it to make content searchable. My application, which indexes data,…
Evaldas Buinauskas
  • 13,739
  • 11
  • 55
  • 107
0
votes
1 answer

Elasticsearch date range filter does not give proper results with gte, lte

Its been observed that lte and gte both take lower bound values. how do I make it to take upper bound for lte and lower bound for gte?? This is how my query looks { "from": 0, "size": 40, "query": { "filtered": { "filter": { …
0
votes
1 answer

elasticsearch nest index relational database

I've indexed 2 separate tables into Elasticsearch - Meetings and MeetingAttendees. A one to many relationship - a meeting can have many attendees. Meetings ID: 1 ID: 2 Meeting Attendees MeetingAttendeeID: 1 MeetingID: 1 Name:…
user3754124
  • 240
  • 2
  • 4
  • 13
0
votes
1 answer

Possible to do multifield range query?

I would like to execute a range query against multiple fields, or a field with a suffix, like markups.*. There doesn't seem to be a way to do this in Nest or Elasticsearch. For example this query in ES returns results: { "query": { "range": { …
goalie7960
  • 863
  • 7
  • 26
0
votes
1 answer

Elasticsearch NEST Translation

I have a search that is giving the correct results and trying to get it to work in .NET Nest but I can't seem to get the correct syntax. Here is the elastricsearch query that I have: { "query": { "filtered": { "query": { …
Lereveme
  • 1,614
  • 2
  • 15
  • 18
0
votes
1 answer

Elasticsearch nest combination filter issue

I'm using elasticsearch nest within an asp.net mvc application. Following elasticsearch query is throwing an exception because fields like categories and brands could be null or empty. How do add if statements and build the filters conditionally.…
1 2 3
17
18