I upgraded from:
ElasticSearch 2.0 to 6.6.1
ElasticSearch.Net Nuget package 2.4.6 to 6.5.1
NEST NuGet package 2.4.6 to 6.5.1
...and my Nest query to do a MatchPhrasePrefix stopped returning results.
The software is a search engine for web pages, and one of the features is supposed to let you limit t...

We are looking to better centralize, structure and search our logs using the ELK stack. We are currently logging to a database table, and we have an EventLog POCO that captures the fields required to populate those rows. Our first stab at getting this data into Elasticsearch was to simply log the ev...

I have a program that performs several bulk index operation on an ElasticSearch cluster. At some point, I start getting errors like this one (snipped):
RemoteTransportException[...][indices:data/write/bulk[s]]]; nested: EsRejectedExecutionException[rejected execution (queue capacity 100) ...];
Is t...

I'm having real problems getting a query using field boosting to work with Elasticsearch. I've been through the Nest docs on the topic, but they weren't particularly helpful, so my code is really based on the solution to this question: Elastic Search using NEST Field Boosting.
If I run the following...

what is the difference between
[ElasticProperty(OptOut =true)]
and
[ElasticProperty(Index = FieldIndexOption.No)]
according to answer here, it is said that optout = true doesnt index the property. I thought Index = FieldIndexOption.No is doing this.

In my ElasticSearch server, I have an existing index template, which contains some settings and some mappings.
I want to add a mapping for a new type to the template, but since it's not possible to update templates, I need to delete the existing one and recreate it.
Since I would like to keep all th...

Was hoping this could be a quick answer. New to C# and NEST (as is probably obvious from my previous posts).
I am using NEST to query my ES instance and have built a small winform application to help accomplish the task. I would like to have one of the comboboxes on my winform populate dynamically...

I have a class with a UserID field which contains a mail address, and I would like to be able to search on that field either for an exact match, or for parts of the mail address with some exclusions.
For example, if UserID contains '[email protected]', I would like to be able to search for 'john.do...

I had a WebAPI C# project using NEST 1.0 and ElasticSearch 1.0
Now I moved to NEST 2.0 and ElasticSearch 2.0 and it doesn't compile anymore
ElasticType has been deprecated for ElasticsearchType, that's fine
However, I have a bunch of properties for my POCOs:
[ElasticProperty(Store = false, Index = F...

I would like to be able to set up some sort of mapping using the NEST2 client so that different types are automatically put in a defined index. Is this possible?
I've tried to map types like this:
client.Map(m => m.Index('index1'));
client.Map(m => m.Index('index2'));
And then index them like this:...

I am trying to request Nest structures via Nest API, using Retrofit 1.9 on Android.
Could not be simpler: obtaining auth token works fine, then I issue HTTP GET request with Authorization header = 'Bearer TOKEN'. The query works via Postman and APC clients. However, in the Android app I am getting...

I want to use the IsoDateTimeConverter from Newtonsoft to format the json version of my DateTime properties.
However, I cant figure out how this is done in Nest 2.x.
Here is my code:
var connectionPool = new SingleNodeConnectionPool(new Uri('http://localhost:9200'));
var settings = new ConnectionSet...

I have to search for a keyword on multiple fields for the same query string.
'bool': {
'should': [
{
'match': {
'ABC': 'Apple'
}
},
{
'match': {
'XYZ': 'Apple'
}
}
]
}
When I wrote the query DSL , it has been translated as multimatch query(Not sure if the above code and DSL are same)
.Bool(b => b
....

I'm an elasticsearch newbie.
Lets say we have a class like this:
public class A
{
public string name;
}
And we have 2 documents which have names like 'Ayşe' and 'Ayse'.
Now, I want to be able to store names with their accents but when I search want to be able take results of accent insensitive quer...

I am in the process of upgrading NEST from 1.6.2 to 2.3.3. Getting type not found for FilterDescriptor, FilterContainer.
What are the equivalent types in NEST 2.3.3?
Thanks in advance.
UPDATE
Based on the response from @RussCam, here is what I got
in 1.6.2
public static Func AddressComponents(strin...

The following code has two variables of type BoolQueryDescriptor. The repective variables have their own different Must, MustNot, Filter parts in them.
Is there a way to combine all the respective Must(s) , Filters , MustNot(s) from each of the variables into a BoolQueryDescriptor variable and feed...

We are in the process of upgrading ElasticSearch and NEST from 1.6.2 -> 2.3.3.
What replaces how we do TermsExecution.And in 2.3.3?
How can this be easily done with an unknown number of terms that need to match? e.g. before you were able to just pass in an array.

I have an elasticsearch database where I have a type and timestamp field defined as:
public Common.MediaType Type { get; set; }
public DateTime Timestamp { get; set; }
How can I do a query to return X entries, matching a specific type and sorted by timestamp?
If I do this:
var Match...

Below query when executed in Elasticsearch version 1.x
Was considering documents created after 6/15/2016 that is documents which have time beyond 12 Am for the date 6/15/2016.It was considering documents till 6/15/2016 23:59:59.999 .
But with new version of ES 2.x the range query has stopped conside...

I get a bit confused and frustrated when it comes to using NEST to querying, as it seems very hit and miss. I have no trouble querying when using standard JSON, so I was wondering if there was some way to query using a JSON object, I have code below
var query = 'bkala';
var q = new
{
query = new
{
t...

I am looking to achieve a single query for search and filtering. But as expected when i applied filtering, the filter condition applied to all types so i got only the result of those document who have that filtered property and value .
For example,
Here i searched in 3 types (Product,Category,Manufa...

I am working on Elasticsearch migration from 1.7.1 to 5.0.
I fixed most of the issues in the code after upgrading to 5.0 but I couldn't figure out how to change FilterContainer to work in new version.
Below is my code
public static List GetPriceRangeFilters(SearchListCriteria criteria, out List addi...

I'm using Elasticsearch.Net and NEST in an applicationand having trouble accessing documents in an Elasticsearh index when searching based on nested object Ids. The data structure is invoice -> lineItems -> rowItems. I want to search based on these rowItems Id. The (simplified) mapping of the index...

I have a C# application which reads and writes to an ElasticSearch database using NEST. I'm storing documents of type Dictionary
I'm also setting some mapping on the fly just after the creation of the index. I'm doing it via NEST calls, see below:
elastic.Map(m => m
.Index(indexName)
.Type('DataReco...

How can I dynamically combine multiple aggregations in one query dynamically?
I know to do it 'hard-coded':
request.Aggregations = new TermsAggregation('agg_field1') {
Field = 'field1'
}
&& new TermsAggregation('agg_field2') {
Field = 'field2'
};
But since I use an array containing the fields I need...

Am learning to use ElasticSearch with Nest as the .Net client. While indexing the data, I don't have a defined model (type mapping) to write the index to, I rely on ElasticSearch to create that for me
Creating the client
var settings = new ConnectionSettings(_config.Uri);
settings.DefaultIndex(_conf...

I have an index on ES already created with a mapping.
I need to change a property analyzer to use a new analyzer. I was able to add the new analyzer to the index, but when trying to update the mapping property to use the new analyzer I got an exception.
My code:
var closeIndexResult = client.CloseIn...

I have been pulling my hair out trying to configure and partial search ElasticSearch indexed data using Nest library version 5.3.1 (same version applies to its one of its dependencies; Elasticsearch.Net).
As per suggestions found online I used data attributes to specify analyzer type on some of the...

I want to GET all my documents by Index. I have tried the following:
var response = client.Search(s => s.Index('test').MatchAll());
the response returns 'successful operation' but it hits no document despite the fact that there are many documents under that index.

I have read the documentation of ElasticSearch and I am familiar with its endpoints and how to maintain Clusters,Nodes,Indices,etc.
Now I am planning to use it in an Asp.net web api and I am a little bit confused about what is the best way to implement it.
I found that ElasticSearch provides two opt...

I am trying to use NEST to create search query dynamically based on user's input.
I have a Filter class with user inputs:
Public class ProductFilter
{
public string Name { get; set; }
public DateTime? PublishDateFrom { get; set; }
}
But for the properties like Name and PublishDateFrom , they could...

We're using Nest 5.5.0 and attribute mapping to create our indices in Elasticsearch. As part of some of our attributes, we're using custom JsonConverters.
We're migrating from 1.7.3, where this mapping was handled correctly. After upgrading, we can see in the mapping that it has mapped the field wit...

I want to retry when the NEST error is in a range of HttpCodeResponse and I have the follow generic policy:
public Policy CreatePolicy(
PolicyType policyType)
where T : Exception where D : IApiCallDetails
{
switch (policyType)
{
case PolicyType.WaitAndRetryAsync:
var httpStatusCodesWorthRetrying = n...