Tagged Questions
Elasticsearch is an Open Source (Apache 2), Distributed, RESTful, Search Engine built on top of Lucene.
0
votes
0answers
6 views
Elasticsearch 1.5.0 - failed to connect to requesting node
I have elasticsearch running on a windows machine (10.0.0.51 on my network). I have deployed an app to a linux virtual machine (10.0.0.10). When my app starts it tries to connect to Elasticsearch and ...
1
vote
0answers
8 views
Aggregating list of values in elasticsearch
{
...
"shirt_sizes":["XL","L","M","S"]
...
}
How to create aggregation of shirt_size field in elasticsearch ?
0
votes
0answers
7 views
Elasticsearch java : how to consider misspellings in fields of a query
sorry for eventual mistakes (I'm French)
To manage a Database, I begin to use ElasticSearch with the Java API, and I have some questions.
I want to make a query which is able to tolerate spelling ...
0
votes
0answers
11 views
How to order french or german words in aggregation correctly (special chars)?
I have follwing problem when i try to order e.g. in german the terms:
Frankreich
Ägypten
Zypern
Algerien
i always get the wrong order:
Algerien
Frankreich
Zypern
Ägypten
but i want to get the ...
0
votes
0answers
13 views
Elasticsearch 1.5 can't find the plugin manager
I'm currently trying to install the JDBC river on an 1.5 elasticsearch instance.
When running:
/bin/plugin --install jdbc --url ...
1
vote
0answers
5 views
How do I define coordinates as a geo IP in ElasticSearch via Powershell?
I am using a Powershell script to break out my AWS CloudTrail log files into pieces that can be easily injected into ElasticSearch. I am attempting to use the Source IP Address to get Geo Coordinates, ...
0
votes
1answer
13 views
Elasticsearch reduce score if id in list
I would like to give higher score for products not purchased yet by the user. We do not sell more than one piece of each product per user so there is no point to promote sold products to a user.
In ...
0
votes
0answers
11 views
is there anyway tool or add-on to support capabilities like Endeca experience manager in ElasticSearch/Solr search?
I am looking for an alternate solution for endeca. Obvious alternates (though not 100%) replacement of Endeca, i find Solr & ElasticSearch satisfies my key requirements. However i am having ...
1
vote
1answer
10 views
Aggregations are empty with keyword tokenizer
For an aggregation result i have a field (type_name2) in my mapping with a lowercased filter and a keyword tokenizer. But if I set this filter and tokenizer to the field my bucket is now empty. I ...
0
votes
1answer
7 views
Area chart based on query in Kibana 4
I have build system for couple components with some branches and some jobs on these branches. Typical JSON for event look more or less like that (I removed unrelated information):
{
"_index": ...
0
votes
1answer
17 views
How to (persistently) update the index.number_of_replicas setting in Elasticsearch without restarting the cluster?
In a running Elasticsearch cluster, the index.number_of_replicas setting in the configuration file is 1.
I could update this to 2 on a running cluster, by running
# curl -XPUT ...
0
votes
1answer
14 views
Is it a good design to index XML using elasticsearch?
I am working on a log management application that collects logs from multiple locations and indexes them into an elasticsearch cluster.
Every single line of logging contains an XML of variable ...
0
votes
1answer
12 views
“message”:“No living connections”,“node_env”:“production”
i am trying to install kibana 4 in my machine but its giving following errors.
{"@timestamp":"2015-04-15T06:25:50.688Z","level":"error","node_env":"production","error":"Request error, retrying -- ...
0
votes
1answer
12 views
Elasticsearch: Filter first document for each unique id
I am writing an elasticsearch query for below scenario:
- field1 field2
- 2015 20
- 2015 14
- 2014 39
- 2013 76
- 2013 2
- 2013 55
I want to find sum of field2 for ...
0
votes
1answer
8 views
Elasticsearch bulk or search
Background
I am working on an API that allows the user to pass in a list of details about a member (name, email addresses, ...) I want to use this information to match up with account records in my ...
0
votes
0answers
10 views
Unassigned shards in one node
I have two nodes, one with the primary shards working fine, but in the other node the replicas are "jumping" all the time, they go from "UNASSIGNED" to "INITIALIZING" or "STARTED" state every few ...
0
votes
1answer
11 views
If I store a date in elastic search using a timestamp (e.g. 1428956853627), can I still query that record by day, without the time value?
For example, if I have a mapping with a date field like:
$ curl -XGET http://localhost:9200/testing/blog/_mapping
{"testing":{
"mappings":{
"blog":{
"properties":{
"posted":{
...
0
votes
0answers
7 views
onModule method seems not called for Elasticsearch river plugin deployed in GCE (Elasticsearch version 1.4.4)
This is a newbie question.
I tried to deploy a river plugin to connect to Google Cloud Storage. I successfully deployed the plugin into elasticsearch (version 1.4.4) instance in GCE and saw the log ...
0
votes
0answers
13 views
Chewy RSpec Test - Expected index `client#person_client` to be updated, but it was not
I am using Chewy to interacting with ElasticSearch in a Rails App. I am trying add a RSpec test to my index (ClientIndex), but I think I am doing something wrong here.
My model Client:
class Client ...
0
votes
0answers
9 views
elasticsearch query issue with ngram
i have this data in my index
https://gist.github.com/bitgandtter/6794d9b48ae914a3ac7c
If you notice in the mapping im using the ngram from 3 tokens to 20.
when i execute this query:
GET ...
0
votes
1answer
15 views
Elastich search : more_like_this operator returns no hit
I am trying to find similar documents to one document in elastic search (the document with id '4' in this case) in my sandbox based on a field (the 'town' field in this case).
So i wrote this query, ...
0
votes
1answer
17 views
django haystack elasticsearch multiple search fields
I have successfully implemented the haystack search engine for 2 models. Those models are meant to be searched within the same field so that is ok. But now I want a different search index for a new ...
0
votes
1answer
10 views
logstash elasticsearch output
I'm newbie in the logstash/elasticsearch combo, and I'm having issues while I've tried to change the naming convention for an elasticsearch index in a logstash conf file. I need to use the part of the ...
0
votes
1answer
10 views
ElasticSearch multi_match query over multiple fields with Fuzziness
How can i add fuziness to a multi_match query? So if someone is too search for 'basball' it would still find 'baseball' articles. Currently my query looks like this:
POST /newspaper/articles/_search
...
1
vote
0answers
26 views
ElasticSearch Query_String regex false positives
I'm running this query in elastic search and not getting all of the correct answers but also false positives.
"query": {
"query_string": {
"query": "/(function|sub) FormSubmit/i",
...
0
votes
1answer
25 views
Elasticsearch long query fails to search
Example of my query:
"query" : {
"bool" : {
"must" : [
{ "terms" : { "group_id" : ["1","2","3","4","5","6","7","8"]} }
]
}
}
I json encode it and send with curl
...
0
votes
0answers
16 views
Logstash file input: registering json file grew but not taking data in some cases
My config file is shown below:
input {
file {
codec => "json"
path => "/home/data/*"
sincedb_path => "/dev/null"
}
}
output {
elasticsearch{
protocol => "http"
...
1
vote
0answers
7 views
How to resolve ELK Stack Mapping Conflict for apache access combined logs
I am trying to learn ELK stack where i have staretd with indexing apache access logs, i have Logstash 1.4.2,Elasticseach 1.5.1 and kiabna 4.0.2 for windows. Following are my configurtion files. for ...
0
votes
1answer
14 views
What are the ideal number of shards count for 3 node elasticsearch setup
I wanted to know how many primary shards and replicas are ideal to a three node cluster and wanted to know the rule of thumb to set the Primary shard and replicas depending on the servers. How can we ...
0
votes
0answers
11 views
ElasticSearch JS update api
I'm trying to correct errors of indexation in my elasticsearch server.
I update document to correct the 'id' attribute(not the '_id' of the doc, but an id attribute inside the indexed object):
...
0
votes
1answer
11 views
How can I change the letter tokenizer (elasticsearch)
How can I change the letter tokenizer (elasticsearch) so that the numbers treated as letters.
For example, the text:
"car bmw727" letter tokenizer break into
"car", "bmw"
and I want to:
"car", ...
0
votes
0answers
16 views
ElasticSearch WebUI: List of uniq fields with links to data with this fields
I need some WebUI for ElasticSearch. Structure of my documents is next:
{
"log": "sometext",
"@timestamp": "date in ISO8601 format",
"type": "docker",
"docker.id": "12345678...",
...
0
votes
0answers
14 views
Elasticsearch returns child type with any parent id
I have docs, and comments types on elasticsearch index and comments type is child of docs. My mapping is:
"comments": {
"_parent": {
"type": "docs"
}
,
"_routing": {
...
0
votes
2answers
30 views
How to handle multiple inputs with Logstash in the same file?
Let's say you have very 3 different lines in your log firewall file and you want:
to grok it and the result be stored into an elastic search cluster using the dedicated elastic search output.
what ...
0
votes
1answer
14 views
How to createin ES an index with different analyzers for search and indexing?
I'm trying to set up index with with different analyzers for indexing and search.
The SENSE I type the following code:
PUT my_index
{
"mappings" : {
"my_type" : {
"properties" : {
...
0
votes
0answers
12 views
Elastic search paginating on multi types in an index
I have an index with multiple types like below :
songs
books
movies
I am building an API for suggesting indexed items grouped by their type, The problem is that I want a size functionality inside ...
0
votes
0answers
18 views
Elasticsearch sort search results without term
I want to retrieve all records inside a particular type and sort it using a date field. I am using this code:
{
"query":{
"filtered":{
"filter":{
"type" : {
...
0
votes
0answers
5 views
Scripted Metric Aggregation order
In elasticsearch 1.5.0, I try to sort/order the aggregation bucket using scripted_metric result,but receive bellow error:
AggregationExecutionException[Invalid terms aggregation order path ...
0
votes
0answers
8 views
Add an attachment to a child array with attachment plugin and elasticsearch rails?
Using Elasticsearch::Persistence::Model with rails...
I have an index where one of the properties is an array of objects. I'd like to add an attachment via the mapper plugin to each object in that ...
0
votes
2answers
14 views
Elasticsearch find all messages that were 'delivered' but not 'opened'
I have the following elasticsearch index data:
id|message_id| action|
1| 1|delivered|
2| 1| opened|
3| 2|delivered|
4| 3|delivered|
5| 4|delivered|
...
0
votes
1answer
17 views
elasticsearch multi-index get request does not work
How can I use GET api on multiple indexes?
I tried the following but I keep getting index missing exception.
http://localhost:9200/index1,index2/_all/AUy25vKhcC3G2n2ukra3
Output:
{
"error" : ...
1
vote
0answers
18 views
Support for encoding /decoding json request/response in ElasticSearch
Can I have a custom Protobuf/MessagePack encoding/decoding module in Elasticsearch, so that request from my client and response from server can be encoded.
0
votes
0answers
21 views
NEST ELASTICSEARCH Mappings does not works
I am new to NEST ElasticSearch and have a Class named document as below
[ElasticType(Name = "EnterpriseSearch.Document")]
public class Document
{
public Document()
{
}
...
0
votes
1answer
14 views
which is the best way to create types in terms of performance in elasticsearch
i have a RDBMS tables having multiple columns and its hetrogenous and need to create an index in elasticsearch from these tables. So which is the best practise intems of creation of types in ...
0
votes
0answers
10 views
Elasticsearch shards lost after merging clusters
I had two servers with different cluster names (let's call them server A and server B) with Kibana installed on each of them. I wanted to merge them into a single cluster, so that I could access all ...
0
votes
2answers
10 views
Elasticsearch update id of each document to a value of another field in the document
In elasticsearch how can I replace the id of every document with the value of another field in the document?
0
votes
1answer
6 views
elasticsearch systemd service failing
I have just switched to systemd on my linux 14.10 and now my elasticsearch service is not starting properly
elasticsearch.service loaded failed failed
a systemctl status gives me the ...
1
vote
1answer
22 views
Kibana4 to listen on Port 80 instead of Port 5601
I have elasticsearch 1.4 and kibana4 running on an Amazo EC2 instance running RHEL7.
Kibana4 is running as a standalone process and is not deployed in a web container such as nginx.It is listening on ...
0
votes
1answer
8 views
Elastic Search allow user to optionally use an exact match
I'm using a multi_match query in Elastic Search since I'm only interested in 3 fields.
query: {
filtered: {
query: {
multi_match: {
fields: ['subject', 'text', ...
0
votes
0answers
17 views
Kibana 3 with nginx ldap authentication - doesn't accept OPTIONS method?
I have 2 virtual hosts on the same nginx server, that both use the nginx-auth-ldap module.
the first virtual host is authenticating with ldap using nginx-auth-ldap, then forwards the request to the ...