262 questions
0
votes
0
answers
155
views
Append dynamic query to existing elastic query
Hi my elastic query is as below
sq.Query = Query<Person>
.Bool(fd => fd
.Must(must => must
.Match(m => m
...
0
votes
0
answers
1k
views
Elasticsearch Insert new record without overwrite
I use Elasticsearch Bulk method for a scenario where a I need to index multiple documents and to make sure if the record already exists in elastic, it is will be ignored and not overwritten.
I am ...
1
vote
2
answers
1k
views
Build multiple filter in Elasticsearch
Can you suggest how do I build a query based on multiple filter.
Currently, I want to implement a search functionality using the following filters:
ProductName
Countries (array)
Cities (array)
The ...
2
votes
1
answer
2k
views
Additional information: Method not found: 'Elasticsearch.Net.IApiCallDetails Elasticsearch.Net.IBodyWithApiCallDetails.get_CallDetails()'
After I upgraded the reference Elasticsearch.Net from 1.0.0 to 5.3.0, I keeping getting this error:
Additional information: Method not found: 'Elasticsearch.Net.IApiCallDetails Elasticsearch.Net....
0
votes
0
answers
591
views
Is there a way to deserialize properties which have special charaters in names with ElasticLowLevelClient.SearchAsync?
I have logstash pushing logs into elasticsearch which automatically inserts the @timestamp field into each doc. I used Elasticsearch.Net instead of NEST in this project.
Each doc looks something like:...
1
vote
0
answers
184
views
Use query_string for full-text search in parent-child tables in ElasticSearch
we have found a strange behavior inside ElasticSearch querying.
We have two types which are connected together as parent (applicant) and child (attachment).
Mapping for parent table:
{
"...
2
votes
0
answers
933
views
Elasticsearch - C# NEST - Change Dictionary<K,V> mapping behavior
I want to change the mapping behavior in C# NEST.
My class looks like:
public class Vector
{
public Guid Guid { get; set; } = Guid.Empty;
public Dictionary<string, double> Entries { get; ...
1
vote
1
answer
73
views
How to prevent indexing field?
I want to prevent indexing Id field for search using Nest attributes.
[Number(type: NumberType.Long, IncludeInAll = false, Index = false)]
public long Id { get; set; }
0
votes
1
answer
102
views
Elastisearch.net property opt in?
I'm using Elastisearch.NET with NEST 2.3. I want to use attribute mapping but I only want to index certain properties. As I understand it all properties are indexed unless you ignore them using for ...
0
votes
1
answer
217
views
How to init a scroll without returning the result in Elasticsearch.Net 5?
Since SearchType.Scan has been removed in Elasticsearch.Net 5 I can't get my head around how to init a scroll which just return the scrollId and not all documents also. Any advice?
8
votes
2
answers
6k
views
How to check if connection to Elasticsearch is established?
I want to check if the connection to Elasticsearch database is ok. In other words I want to ping Elasticsearch. When I execute the code below, an exception is thrown.
public async Task<...
0
votes
1
answer
2k
views
Can't get any documents with NEST from elasticsearch
I use Searchblox to index and search my files, which itself calls ES 2.x to do the job. Searchblox uses a "mapping.json" file to initialize a mapping upon the creation of an index. Here's the link to ...
4
votes
1
answer
1k
views
How to create a new index in Elasticsearch 5 from .Net or NEST
I am trying to create a new Elastic 5 index from .net and data from a SQL database into it using the bulk API.
I have created a POCO for mapping:
using Nest;
namespace NEST5
{
[ElasticsearchType(...
0
votes
2
answers
76
views
Elasticsearch - is there a method to match using "almost ident"
I use Facebook and Google maps to get a full Geo Entities data values (country, city, street, zip...).
I store these values on my mongoDB,
I noticed that some locations are deffer in the way they ...
0
votes
2
answers
924
views
I can't get nested stored_fields
All.
I'm using ElasticSearch 5.0 and I have next mapping:
{
"mappings": {
"object":{
"properties":{
"attributes":{
"type":"nested",
...
0
votes
0
answers
397
views
Elasticsearch.Net API guide and examples/tutorial
Is there a good place with tutorial on Elasticsearch.Net? How to build queries, etc.
I can't use NEST so trying go low level.
Thanks in advance.
32
votes
2
answers
45k
views
How to check if an index exists in elasticsearch using a python script and perform exception handling over it?
How do I check whether an index exists or not using a python query?
I'm passing my index as a variable assigned outside the query as :-
i=int(datetime.datetime.now().strftime('%d'))+1
indextring="...
0
votes
0
answers
1k
views
ElasticSearch .NET/NEST joining multiple types efficiently
Sorry, I realize this reads like a book. As such, I realize this may not even be the best forum for this, but SO is usually the first and best place I come to for answers to anything.
This question ...
1
vote
1
answer
514
views
Query existing index from elasticsearch using NEST
We have an elasticsearch installation with kibana and I was wondering if I can write a query using NEST to display the log files a .Net program?
I have tried creating a simple LogMessage POCO class ...
2
votes
3
answers
2k
views
Elastic Search mapping of logstash @timestamp to strongly typed in .NET
I use Serilog and the ElasticSearch Sink with AutoRegisterTemplate = true
That stores the following in ElasticSearch
{
"@timestamp": "2016-08-17T08:57:37.3487446+02:00",
"level": "Information",...
1
vote
2
answers
3k
views
Elastic search with GUID ID without attributes
We are looking to switch from a relational database to elastic search and I am trying to get some basic code up and running with Nest. We have existing objects which use guids for ids that I would ...
1
vote
1
answer
876
views
How to create MoreLikeThis query for inner array in NEST?
I want to create NEST equivalent for this json query:
{
"query": {
"more_like_this" : {
"fields" : ["storages.items"],
"like" : ["a","b"],
"...
0
votes
1
answer
2k
views
Using binary type with NEST (elasticsearch)
I want to have a binary parameter stored in my Elasticsearch server from my C# code.
None of the types I tried to use in my index class translates to it.
Is there a way to explicitly instruct my ...
0
votes
0
answers
1k
views
Not able to get detailed error trace from BulkResponse in Elasticsearch Nest Client
What I want is when bulk update using script, if there is conflict on data, throw a customized exception from the script. And client side can grab and handle that error. I expected the BulkResponse ...
0
votes
1
answer
263
views
What are the equivalent types for FunctionScoreFunctionsDescriptor & FunctionScoreFunction in 2.3.3
Upgrading from NEST 1.6.2 to 2.3.3.
What are the new types for FunctionScoreFunctionsDescriptor and FunctionScoreFunction in NEST 2.3.3?
Are they FunctionScoreFunctionsDescriptor -> ...