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

Elasticsearch.net get what was found from a query

I have the following analyzer set up in my Elasticsearch 1.7.1 database: { "settings" : { "analysis" : { "analyzer" : { "my_whitespace_analyzer" : { "tokenizer" :…
0
votes
1 answer

Querying array of strings by array of strings in elasticsearch.net

I'm using elasticsearch.net library in C# and I'm trying to query for objects matching specified filter. I would like the query to return objects where at least one of input names from filter exists in object's Names collection. The problem is that…
Andrew B
  • 860
  • 1
  • 14
  • 23
0
votes
2 answers

Elasticsearch NEST - Phrase search

What methods should I use in order for my query to return hits with at least 2 keywords in the text from an input phrase. For example, if the input "hello friend" I want the return results to contain documents where "hello" and "friend" somewhere…
Igor K.
  • 915
  • 2
  • 12
  • 22
0
votes
2 answers

ElasticSearch Mapping: is it possible to auto-truncate a date to fit it's format?

On our project we're using NEST to insert data into ElasticSearch (1.7). We'd like to be able to force ES to truncate all dates towards the mapped format. Mapping example: "dateFrom" : { "type": "date", "format": "dateHourMinute" // Or…
shmow
  • 622
  • 1
  • 8
  • 19
0
votes
1 answer

How to add analyzer at query level in elasticsearch?

I need to remove the stop words from query in elasticsearch. I am able to apply analyzer at index level but let me know how to apply analyzer at query or search level in elasticsearch.
0
votes
1 answer

Aggregation, suggestion in ElasticSearch (Nest, Elasticsearch.net) get complete object

I'm quite new to elasticsearch, I am using NEST to query to elastic following is my code snippet. var searchResults = elasticClient.Client.Search( s => s .Size(20) .Fields(core) …
0
votes
1 answer

Pass update_all_types on ElasticSearch Put Mapping

We are upgrading to ElasticSearch 2.0 and have come across an issue with our mappings in Nest 1.7.0 : we have two types that share a field (with the same format): "@timestamp": { "type": "date", "format":…
Sven Grosen
  • 5,616
  • 3
  • 30
  • 52
0
votes
1 answer

How can I stop Nest from appending extra query around QueryRaw

I'm upgrading to Nest 1.7 from .11. All my queries are in raw json format, and when upgrading, it appears when performing a raw query search with my query, nest appends an outer query, causing failure. The docs say it does not modify the string,…
daviddeath
  • 2,483
  • 2
  • 17
  • 16
0
votes
2 answers

Reason for long response times with "first" search query?

I'm working on an application which uses MySQL as its database. I am however adding a search function with autocomplete/"as-you-type results" which uses ElasticSearch. Getting the relevant data from MySQL to ElasticSearch is not a problem and my…
David Nordvall
  • 12,404
  • 6
  • 32
  • 52
0
votes
1 answer

Elastic Search - Re boot index after updating synonym config file

I am using a synonym text file to define synonyms for my search index. If I update this file, I have to stop and start the windows service before the new additions take effect.. Is there a way I can cause my index to be refreshed dynamically? I am…
mp3duck
  • 2,633
  • 7
  • 26
  • 40
0
votes
1 answer

Not able to set fuzziness as auto in MultiMatch Query

I am trying to use a multimatch query by instantiating an object of the following type: MultiMatchQuery query = new MultiMatchQuery() { Query = searchString, Fuzziness = 6, //TODO Need to set AUTO Here …
labyrinth
  • 1,104
  • 3
  • 11
  • 32
0
votes
1 answer

Complex queries using ElasticSearch

I have just started with es and I want to know how can I write a query to perform a search like "3 beds in city 1" or "2 baths in City 1 near School 2" As per my understanding we can handle 3 beds/bed/bd/bed room using synonyms but how do i know…
Ankit Sarkar
  • 547
  • 1
  • 6
  • 20
0
votes
1 answer

NEST version 1.3.1 supported Elasticsearch version(s)

I'm looking to upgrade my Elasticsearch cluster to 1.4.5 or 1.5 and was curious if this upgrade will break my current codebase. We are using NEST 1.3.1 in our code and I want to see if this version supports Elasticsearch 1.4.5 and higher? If you…
BNM22
  • 31
  • 4
0
votes
0 answers

Not able to use context while querying for suggestions

I have created the following mapping: PUT /test/userfolder/_mapping -d '{ "userfolder": { "properties": { "suggest_folder": { "type": "completion", "analyzer": "simple", "payloads":…
labyrinth
  • 1,104
  • 3
  • 11
  • 32
0
votes
1 answer

Suggestion field array

I have a document that contains an array of tags. I need to create a suggestion field corresponding to this tag field (to generate tag suggestions based on the values in the tag array). I am using NEST to interact with elastic search mostly. But I…
labyrinth
  • 1,104
  • 3
  • 11
  • 32