Tagged Questions
Elasticsearch is an Open Source (Apache 2), Distributed, RESTful, Search Engine built on top of Lucene.
0
votes
0answers
4 views
ElasticSearch bulk operation - omit response
I was just wondering if there was any parameter / method to make a bulk request through the ElasticSearch REST api without a response being returned.
Trying to squeeze as much network performance as ...
0
votes
0answers
12 views
Lucene query syntax - how to add time?
I am new to Luncene query syntax. I am using elasticsearch/logstash and kibana for storing logfiles. But i want to filter by date and time
this works
@timestamp:[2014-10-01 TO 2014-10-01 ]
But if ...
1
vote
0answers
5 views
Nginx reverse proxy for ElasticSearch allowing _search endpoint only
I know how to allow only GET request (more here http://brudtkuhl.com/securing-elasticsearch/), but in my case it would be better to configure nginx reverse proxy to allow only _search endpoint. And I ...
2
votes
1answer
15 views
Alias on “_all” index not updated when new indices created
I have a filtered alias in elasticsearch that I've created using "_all" as the index it is bound to. Like so:
curl -XPOST "localhost:9200/_aliases" -d'
{
"actions": [
{
"add": {
...
0
votes
0answers
14 views
Run multiple elasticsearch nodes as a service on one Ubuntu-Server
I have a server running Ubuntu 14.04 with 220 GB of ram on which I'd like to run elasticsearch. According to the documentation, one node should not have more than 32 GB of RAM, so I guess I have to ...
0
votes
0answers
12 views
elasticsearch python bulk api (elasticsearch-py)
I'm confused about py-elasticsearch bulk
@Diolor solution works
http://stackoverflow.com/questions/20288770/how-to-use-bulk-api-to-store-the-keywords-in-es-by-using-python, but I would like to use ...
0
votes
1answer
9 views
Recognising timestamps in Kibana and ElasticSearch
I'm new to ElasticSearch and Kibana and am having trouble getting Kibana to recognise my timestamps.
I have a JSON file with lots of data that I wish to insert into Elasticsearch using Curl. Here is ...
0
votes
1answer
15 views
Setting up default mapping Elasticsearch
From the documentation you can set up default mapping definition for every index just putting the .json file inside $ELASTICSEARCH_HOME/config/mappings/_default
However, after doing this, I just get ...
0
votes
0answers
15 views
Elasticsearch multi-word, multi-field search with analyzers
I want to use elasticsearch for multi-word searches, where all the fields are checked in a document with the assigned analyzers.
So if I have a mapping:
{
"settings": {
"analysis": {
...
-1
votes
1answer
23 views
i ned to get the values which are lesser than 50 from a field
I need to get the values which are less than 50 from a field "cost" so what shoud I do???`
{
"query" :
{
"field" :"cost",
{ ...
1
vote
0answers
10 views
Elasticsearch as a drop in replacement for Memcached
I've been trying to play with Elasticsearch as a drop in replacement for Memcached. I've installed the memcached transport and it looks like it started fine and is on the right port. However if I ...
0
votes
0answers
32 views
Ranking Results Based on Points
I'm trying to build a function that retrieves a list of items but prioritizes them by some fairly complex relationships such as friend's votes and common interests. I could simply retrieve a list from ...
0
votes
0answers
14 views
Multi Value filed Histogram on kibana 3
I am facing issues while creating Histogram on kibana3.
I have to display test results as a stacked bar charts on kibana.
Ex of test Results: Passed 3 failed 5 aborted 15
passed ...
0
votes
1answer
9 views
Haystack Django Elasticsearch spelling
I have two problems setting up haystack/django/elasticsearch
I never get results from index fields, e.g. indexes.CharField(model_attr='title') doesn't get me results. Only if I put {{ object.title ...
0
votes
1answer
15 views
Exclude empty array fields - but include documents missing the field - in elasticsearch
I'm trying to run a query against elasticsearch that will find documents where one of the following conditions applies:
The document is missing the given field (tags) OR
The document has the value ...
2
votes
1answer
31 views
explicit array type in mapping in elasticsearch
Is there a way to explicitly specify that a property is expected to be an array in the mapping?
Here is the relevant part of my json schema to generate the mapping: myArray should be an array. This ...
1
vote
2answers
24 views
Why prefix returns documents without the specific prefix?
I want to return only documents which their name start with "pizza". this is what I've done:
{
"query": {
"filtered": {
"filter": {
"prefix": {
"name": "pizza"
}
...
0
votes
1answer
19 views
Elasticsearch NoClassDefFoundError for PostingFormats
Get a NoClassDefFoundError when attempting to create an index using java with embedded elasticsearch.
Versions Java 1.7 and Elasticsearch 1.3.2
Building with maven assembly plugin
Running using a ...
0
votes
1answer
17 views
Configuring Proxy for Logstash
I'm trying to run Logstash to send the output to Elasticsearch through a proxy. As far as I can tell there is no configuration for the output that would allow me to specify a proxy. Currently I use:
...
0
votes
0answers
12 views
how to get all the types of on index by using Nest(Elasticsearch) in C#
if use original api /_mapping, I can get all he information of all types for each index.
but when I use Nest, I can not see the way to do the same thing like /_mapping does. Nest has getMapping, but ...
2
votes
2answers
28 views
Match query with multiple values
I have a list of values and I want all documents that have any of these values in their product_code field.
I tried this, but even though it doesn't give an error, it only gives me one of the ...
0
votes
1answer
12 views
Should I control the Index size in Elastic Search?
I have a fast growing database and I'm using Elastic Search to manage it.it has only one index and gets 200 K new documents per day. each document contains of about 5 KB text.
Should I keep using only ...
0
votes
1answer
26 views
filter '_index' same way as '_type' in search across multiple index query elastic search
I have two indexes index1 and index2 and both has two types type1 and type2 with same name in elastic search.(please assume that we have valid business reason behind it)
I would like to search index1 ...
0
votes
0answers
14 views
How to get all the indexes and filter the indexes by using Nest in C#
I need to list all the indexes and type in Elasticsearch.
basically, I use _client.stats().Indices to acquire the indexes, and filter using foreach excluded index list.
code like:
public ...
0
votes
1answer
19 views
Adding a secondary node on another computer?
The running instance of elasticsearch on a server is running with all defaults, no changes.
How can I scale horizontally to another server on another network?
Where do you specify this?
I only see ...
0
votes
2answers
20 views
Favor exact matches over nGram in elasticsearch
I am trying to map a field as nGram and 'exact' match, and make the exact matches appear first in the search results. This is an answer to a similar question, but I am struggling to make it work.
No ...
1
vote
0answers
25 views
Get rid of unassigned shard
I've an ELK stack with two ElasticSearch nodes running and the cluster state turned red due to some unassigned shards which I can't get rid of. Looking up the unassigned shard, resp. the incomplete ...
1
vote
1answer
12 views
Elasticsearch snapshot
If an elasticsearch snapshot contains multiple indexes ( ex: wikipedia, ehow, howStaffWorks ), can we load only one of these indexes into elasticsearch server or all the indexes have to be loaded when ...
2
votes
1answer
20 views
+50
Elasticsearch clustering behind UFW firewall
I have an Elasticsearch cluster running on two different Digital Ocean droplets. They are both set up for private networking, an I have a Mongo DB replica set running just fine with UFW rules set up ...
0
votes
1answer
15 views
Bonsai ElasticSearch + Heroku + Python - Location of Synonym File
I'm using bonsai.io and want to point elasticsearch to my synonyms file.
I have kept the wn_s.pl in a folder on heroku and the django app can see the file:
>>> call(['ls', '-l', ...
0
votes
1answer
24 views
Elastic Search, match multiple terms on one string
First of all, I am following along with the elastic search tutorial located here. I am attempting to execute a search with multiple query strings.
My index has several fields, but the one I am ...
0
votes
1answer
13 views
Elasticsearch Right strategy to index html file's content
Hello Elasticsearch experts!
I have a use case which I am not sure what is the best way to go about it.
I have an html file which I need to index. This part is easy as I can configure my custom ...
0
votes
0answers
22 views
Elasticksearch how to build search query?
Hi i'm using symfony2 foselasticabundle, and i want to search my index for results. still i get empty array even if i have some records :(
here how it looks like:
search:
settings:
...
0
votes
0answers
25 views
ElasticSearch - group and count by dates from array field
I have a document in elasticsearch for each user, and it looks something like this:
{
...
"created" : "2014-09-01",
"active" : [ "2014-09-01", "2014-09-02", "2014-09-05", "2014-09-15", ...
0
votes
1answer
14 views
Failover for elasticsearch and logstash
I was working to configure logstash and elasticsearch.
In my logstash config file output section.
elasticsearch {
codec => json_lines
cluster => "firstEsearch_cluster"
protocol ...
0
votes
0answers
19 views
Logstash -> Elasticsearch Not Mapping Correctly
So I recently created an ELK cluster using this site as a template for doing so.ELK Cluster Setup
I am running into a problem where the json template on the Logstash processing node isn't being used ...
-1
votes
0answers
31 views
ElasticSearch faceted search query
Hi im building a site that will have a faceted search feature, people are recommending elasticsearch for this. Am I right in thinking the site data i need store will need to be installed in ...
0
votes
0answers
19 views
Elasticsearch queries slows down on index load
We are trying to import 1M documents to Elasticsearch (version 1.3.2). Each document is about 15-20KB. Our setting for memory ES on a 4 core, 4GB RAM server is ES_HEAP_SIZE = 2GB. Java version ...
0
votes
1answer
18 views
Elasticsearch 0.90.0: Putting existing server (with some data) into cluster
I am using elasticsearch 0.90.0 in my production environment. Currently, I am using only a single server (along with jetty plugin to restrict write access).
Now I want a cluster of two servers ...
0
votes
1answer
10 views
How to return only aggregation stats in an ElasticSearch query?
Is it possible to exclude documents from an aggregation query? I just need to know "count" and "sum" and do not need hits. I did it like this:
{
"query": {
"match_all": {
}
},
"aggs": ...
-1
votes
0answers
18 views
Log correlation
We are using a ELK(ElasticSearch+Logstash+Kibana) stack, for out log management, but the problem is that kibana shows the stats of each component individually.
I want to have a correlation of events ...
0
votes
0answers
5 views
Choosing ec2 instance for web server to communicate with elasticsearch server
Considering the current model, we have set up our web application and elasticsearch running on the same server. since we deal with a high number of data harvested(around 1million) every day we have ...
0
votes
1answer
22 views
logstash - filter logs and send to different elasticsearch cluster
let's say I've got a stack like this: logstash-forwarder -> logstash -> elasticsearch -> kibana
I wonder if it's possible to monitor a whole directory with logstash-forwarder and send the logs to ...
0
votes
0answers
4 views
Elastic search nested aggregation - Nodes going down with high size parameter
I am trying to use aggreagations to define nested group by.. Normally it works fine (with 10/bucket) but if I add a size parameter, old gen of elastic search seems to jump to 100% in less than 4 sec ...
-1
votes
0answers
9 views
Need filter example for elasticsearch-rails
I have a rails/mongo app that was working great with Tire. My old query is:
s = Item.search do
query { string query.query } if query.query.to_s.length > 0
page = search_page
min_score ...
1
vote
1answer
15 views
Logstash not writing to Elasticsearch
I am having an error where Logstash is not writing a parse document to elasticsearch when the message property contains hierarchical message data. When the message property does not contain ...
0
votes
1answer
17 views
NEST Filter for ElasticSearch
I'm using NEST to query ElasticSearch and I'm looking to create a conditional filter. I need the query to match on category AND the optional title and chapter fields. I'm doing an aggregate to get ...
0
votes
1answer
24 views
Elasticsearch exact match of specific field(s)
I'm trying to filter my elasticsearch index by specific fields, the "country" field to be exact. However, I keep getting loads of other results (other countries) back that are not exact.
Please could ...
0
votes
0answers
9 views
How to create secondary axis in kibana
I am new to ELK stack and planning to use ELK to one my of my log analytics project.
I am wondering if Kibana support pivot chart with secondary axis. As per requirement I have to generate charts with ...
0
votes
0answers
9 views
Using Elasticsearch Get API to get all documents in index
I am trying to retrieve all of the documents in a particular index/type. I want to use the Get API instead of the search API because I want to bypass the refresh delay. Is this possible? I'm aware ...