# Elasticsearch

**URL:** https://discuss.elastic.co/c/elastic-stack/elasticsearch/6.md?page=1458

[Latest](https://discuss.elastic.co/latest.md) · [Categories](https://discuss.elastic.co/categories.md) · [Tags](https://discuss.elastic.co/tags.md)

**Page:** 1459

---

## [How can verify all the indexes in available after import from old server to new server](https://discuss.elastic.co/t/how-can-verify-all-the-indexes-in-available-after-import-from-old-server-to-new-server/160097)

<div class="topic-metadata">

**Author:** [@nuwan](https://discuss.elastic.co/u/nuwan)\
**Replies:** 1\
**Last updated:** [December 10, 2018, 8:25am UTC](https://discuss.elastic.co/t/how-can-verify-all-the-indexes-in-available-after-import-from-old-server-to-new-server/160097 "2018-12-10T08:25:24Z")

</div>

Hi Team I have used following method to import index from (IngestionDemo 172.24.36.216) to Elasticdemo (172.24.36.204) . Now I need to verify all the indexes are available in ElasticDemo (172.24.36.204) Could you pleas…

---

## [Query in .Net To get the values from ElasticSearch](https://discuss.elastic.co/t/query-in-net-to-get-the-values-from-elasticsearch/160095)

<div class="topic-metadata">

**Author:** [@phanivempati](https://discuss.elastic.co/u/phanivempati)\
**Replies:** 1\
**Last updated:** [December 10, 2018, 7:51am UTC](https://discuss.elastic.co/t/query-in-net-to-get-the-values-from-elasticsearch/160095 "2018-12-10T07:51:50Z")

</div>

Hi All, I am new to this elastic search and Nest. My query is simple, if i wrote in SQL it is something like below. select \* from table1 where column1 = '123' and column2='text' and column3 in (12,11,13) and --datetim…

---

## [Comparing multiple fields with multiple expected values](https://discuss.elastic.co/t/comparing-multiple-fields-with-multiple-expected-values/160094)

<div class="topic-metadata">

**Author:** [@MMostafa\_elastic](https://discuss.elastic.co/u/MMostafa_elastic)\
**Replies:** 0\
**Last updated:** [December 10, 2018, 5:05am UTC](https://discuss.elastic.co/t/comparing-multiple-fields-with-multiple-expected-values/160094 "2018-12-10T05:05:11Z")

</div>

I am building a search function and would like to know the best approach to implement the following scenario: I am using multiple text fields say x1,x2,x3,x4. All fields may contain value or be empty. In case there is …

---

## [Unit testing elasticsearch using Spock](https://discuss.elastic.co/t/unit-testing-elasticsearch-using-spock/160105)

<div class="topic-metadata">

**Author:** [@RAM\_NATHAN](https://discuss.elastic.co/u/RAM_NATHAN)\
**Replies:** 1\
**Last updated:** [December 10, 2018, 7:22am UTC](https://discuss.elastic.co/t/unit-testing-elasticsearch-using-spock/160105 "2018-12-10T07:22:52Z")

</div>

Hi I want to write unit test cases using spock framework. I read there is ES unit testing framework. How to use that?? Also I need examples of using ESTestCase. Please guide

---

## [How to sort by a derived value that includes a moving date?](https://discuss.elastic.co/t/how-to-sort-by-a-derived-value-that-includes-a-moving-date/160101)

<div class="topic-metadata">

**Author:** [@rpm1984](https://discuss.elastic.co/u/rpm1984)\
**Replies:** 0\
**Last updated:** [December 10, 2018, 5:56am UTC](https://discuss.elastic.co/t/how-to-sort-by-a-derived-value-that-includes-a-moving-date/160101 "2018-12-10T05:56:47Z")

</div>

Hi there, (sorry for all the questions.. for those regular peeps that keep seeing me pop up :slight\_smile: ) I have a requirement to sort the results returned by ElasticSearch by a special value i define, let's call it …

---

## [Searching upon two date fields within a main filter](https://discuss.elastic.co/t/searching-upon-two-date-fields-within-a-main-filter/160099)

<div class="topic-metadata">

**Author:** [@rpm1984](https://discuss.elastic.co/u/rpm1984)\
**Replies:** 0\
**Last updated:** [December 10, 2018, 5:41am UTC](https://discuss.elastic.co/t/searching-upon-two-date-fields-within-a-main-filter/160099 "2018-12-10T05:41:21Z")

</div>

I have a document like this: { "listings": { "mappings": { "listing": { "properties": { "auctionOn": { "type": "date" }, "inspections": { "type":…

---

## [Node not able to join the cluster after enabling x-pack in elastic v6.5](https://discuss.elastic.co/t/node-not-able-to-join-the-cluster-after-enabling-x-pack-in-elastic-v6-5/160031)

<div class="topic-metadata">

**Author:** [@mohamedabdoun](https://discuss.elastic.co/u/mohamedabdoun)\
**Replies:** 2\
**Last updated:** [December 10, 2018, 5:22am UTC](https://discuss.elastic.co/t/node-not-able-to-join-the-cluster-after-enabling-x-pack-in-elastic-v6-5/160031 "2018-12-10T05:22:08Z")

</div>

I’m trying to build elasticsearch 6.5 cluster , mcluster consists of 3 nodes , I managed to installed the cluster without x-pack successfully and all 3 nodes appears in \_cat API. However, when I configured x-pack only …

---

## [Ldap connectivity using user in kibana.yml is , xpack user or AD user?](https://discuss.elastic.co/t/ldap-connectivity-using-user-in-kibana-yml-is-xpack-user-or-ad-user/159875)

<div class="topic-metadata">

**Author:** [@rijinmp](https://discuss.elastic.co/u/rijinmp)\
**Replies:** 1\
**Last updated:** [December 10, 2018, 5:17am UTC](https://discuss.elastic.co/t/ldap-connectivity-using-user-in-kibana-yml-is-xpack-user-or-ad-user/159875 "2018-12-10T05:17:23Z")

</div>

Hi All , If i am enabling ldap authentication in Es , we can login with AD user through kibana login page. My doubt is , on that same time which user we should use in kibana.yml conf ? X-pack user or AD user ( in kiba…

---

## [Error creating s3 repository](https://discuss.elastic.co/t/error-creating-s3-repository/160096)

<div class="topic-metadata">

**Author:** [@Eva](https://discuss.elastic.co/u/Eva)\
**Replies:** 0\
**Last updated:** [December 10, 2018, 5:16am UTC](https://discuss.elastic.co/t/error-creating-s3-repository/160096 "2018-12-10T05:16:33Z")

</div>

Hello I'm trying to create S3 repository to take a snapshot of Elasticsearch cluster and i get below error - {"error":{"root\_cause":\[{"type":"repository\_exception","reason":"\[my\_s3\_repository\] failed to create reposito…

---

## [Elastic ssl certificate api](https://discuss.elastic.co/t/elastic-ssl-certificate-api/159779)

<div class="topic-metadata">

**Author:** [@misomij](https://discuss.elastic.co/u/misomij)\
**Replies:** 2\
**Last updated:** [December 10, 2018, 5:13am UTC](https://discuss.elastic.co/t/elastic-ssl-certificate-api/159779 "2018-12-10T05:13:05Z")

</div>

Hi all, I'm on 6.3.2, trying to configure SSL. I used certutil to create the keystores for ca and nodes. Trying the certificate api I get this information from my node: \[ { "path": "/etc/elasticsearch/certs/m2-…

---

## [Composite Aggregations Java API](https://discuss.elastic.co/t/composite-aggregations-java-api/160090)

<div class="topic-metadata">

**Author:** [@Mauricio\_Santos](https://discuss.elastic.co/u/Mauricio_Santos)\
**Replies:** 0\
**Last updated:** [December 10, 2018, 4:06am UTC](https://discuss.elastic.co/t/composite-aggregations-java-api/160090 "2018-12-10T04:06:11Z")

</div>

I need a way to page aggregations in elasticsearch and composite aggregations can solve my problem, great resource, thanks. but is there any news about composite aggregations for Java APIs?

---

## [Using script with date\_histogram offset](https://discuss.elastic.co/t/using-script-with-date-histogram-offset/159326)

<div class="topic-metadata">

**Author:** [@leslie](https://discuss.elastic.co/u/leslie)\
**Replies:** 2\
**Last updated:** [December 7, 2018, 10:26am UTC](https://discuss.elastic.co/t/using-script-with-date-histogram-offset/159326 "2018-12-07T10:26:05Z")

</div>

I create a watcher running each 10m, and aggregate result with date\_histogram interval 15m. Now I wanna set offset of aggregation based on the time it executes, how should I config with the watcher (version 5.4). Here …

---

## [Set config via command line '-E' option is still possible in ES 6.x?](https://discuss.elastic.co/t/set-config-via-command-line-e-option-is-still-possible-in-es-6-x/160005)

<div class="topic-metadata">

**Author:** [@no\_jihun](https://discuss.elastic.co/u/no_jihun)\
**Replies:** 2\
**Last updated:** [December 10, 2018, 1:48am UTC](https://discuss.elastic.co/t/set-config-via-command-line-e-option-is-still-possible-in-es-6-x/160005 "2018-12-10T01:48:02Z")

</div>

With my current es 5.2 cluster, I set many configs by command line option '-E' syntax, such as -Enode.master=false -Ecluster.name=xxx -Epath.logs=yyy -Epath.repo=kkk -Ebootstrap.memory\_locak=true -Expack.security.e…

---

## [Query in Nest](https://discuss.elastic.co/t/query-in-nest/159831)

<div class="topic-metadata">

**Author:** [@Paulo\_Henrique\_PH](https://discuss.elastic.co/u/Paulo_Henrique_PH)\
**Replies:** 1\
**Last updated:** [December 10, 2018, 12:34am UTC](https://discuss.elastic.co/t/query-in-nest/159831 "2018-12-10T00:34:42Z")

</div>

Hi guys, I'm trying to produce the request below in NEST.NET: GET /INDEX/\_search?q=DESCRIPTION:windowS The problem is, the INDEX in question is a dynamic, therefore I won't be able to use it with a strongly typed FIEL…

---

## [Ignore mapping Exceptions at searching time](https://discuss.elastic.co/t/ignore-mapping-exceptions-at-searching-time/159302)

<div class="topic-metadata">

**Author:** [@alizadehei](https://discuss.elastic.co/u/alizadehei)\
**Replies:** 3\
**Last updated:** [December 9, 2018, 9:31pm UTC](https://discuss.elastic.co/t/ignore-mapping-exceptions-at-searching-time/159302 "2018-12-09T21:31:24Z")

</div>

hi Elasticsearch by default throws an exception if searching data for a field which does not fit the existing type. For example, if a field has been created as number type, index a document with a string value for that …

---

## [Connecting elasticsearch inside apiman with Grafana](https://discuss.elastic.co/t/connecting-elasticsearch-inside-apiman-with-grafana/160059)

<div class="topic-metadata">

**Author:** [@abhishekb1512](https://discuss.elastic.co/u/abhishekb1512)\
**Replies:** 0\
**Last updated:** [December 9, 2018, 5:53pm UTC](https://discuss.elastic.co/t/connecting-elasticsearch-inside-apiman-with-grafana/160059 "2018-12-09T17:53:12Z")

</div>

Im trying to connect the generic Elasticsearch inside of apiman with Grafana to view the apiman metrics graphically. This is the index i want to view health status index pri rep docs.count docs.deleted store.size yell…

---

## [Post Filtering Date histogram aggregation bucket results not working as intended](https://discuss.elastic.co/t/post-filtering-date-histogram-aggregation-bucket-results-not-working-as-intended/159833)

<div class="topic-metadata">

**Author:** [@dx123](https://discuss.elastic.co/u/dx123)\
**Replies:** 0\
**Last updated:** [December 7, 2018, 3:09am UTC](https://discuss.elastic.co/t/post-filtering-date-histogram-aggregation-bucket-results-not-working-as-intended/159833 "2018-12-07T03:09:00Z")

</div>

I have an aggregation query where I am trying to calculate the max standard deviation of the number of destination ips per IP Address for a certain time range. As everyone knows the common problem with the moving functio…

---

## [How to insert JSON data directly to elastic search using curl command?](https://discuss.elastic.co/t/how-to-insert-json-data-directly-to-elastic-search-using-curl-command/160046)

<div class="topic-metadata">

**Author:** [@bugnet17](https://discuss.elastic.co/u/bugnet17)\
**Replies:** 3\
**Last updated:** [December 9, 2018, 2:50pm UTC](https://discuss.elastic.co/t/how-to-insert-json-data-directly-to-elastic-search-using-curl-command/160046 "2018-12-09T14:50:06Z")

</div>

I'm trying to insert data directly to elastic search into a specific index called "cars" via the curl command but it is constantly encountering errors. curl -XPOST http://elk.local:9200/cars/doc -H "Content-Type: applic…

---

## [Synonym Token Filter Error](https://discuss.elastic.co/t/synonym-token-filter-error/160016)

<div class="topic-metadata">

**Author:** [@Jensxy](https://discuss.elastic.co/u/Jensxy)\
**Replies:** 1\
**Last updated:** [December 9, 2018, 11:01am UTC](https://discuss.elastic.co/t/synonym-token-filter-error/160016 "2018-12-09T11:01:17Z")

</div>

Synonym Token Filter gives an Error. Elasticsearch version Version: 6.2.2, Build: 10b1edd/2018-02-16T19:01:30.685723Z, JVM: 1.8.0\_161 Plugins installed: Opennlp JVM version java version "1.8.0\_161" Java(TM) SE Run…

---

## [Enhance performance when using FSCrawler and Elasticsearch together](https://discuss.elastic.co/t/enhance-performance-when-using-fscrawler-and-elasticsearch-together/160038)

<div class="topic-metadata">

**Author:** [@mohsen](https://discuss.elastic.co/u/mohsen)\
**Replies:** 1\
**Last updated:** [December 9, 2018, 10:13am UTC](https://discuss.elastic.co/t/enhance-performance-when-using-fscrawler-and-elasticsearch-together/160038 "2018-12-09T10:13:36Z")

</div>

Hello I know the question and the scenario I'm going to make is general and the answer depends on the circumstances, but I would like to know what is the best approach and setting for such a scenario. What we are going…

---

## [Improve reindex speed into new cluster](https://discuss.elastic.co/t/improve-reindex-speed-into-new-cluster/159511)

<div class="topic-metadata">

**Author:** [@ndtreviv](https://discuss.elastic.co/u/ndtreviv)\
**Replies:** 3\
**Last updated:** [December 8, 2018, 10:08am UTC](https://discuss.elastic.co/t/improve-reindex-speed-into-new-cluster/159511 "2018-12-08T10:08:38Z")

</div>

I'm reindexing 9.2TB-data index (~2bn documents) from a v2-created index (restored onto v5.6 cluster) into a v5 created 20-shard index (on same cluster). The elasticsearch cluster consists of 9-nodes, each with 32 GiB RA…

---

## [Searching more than one index in a query](https://discuss.elastic.co/t/searching-more-than-one-index-in-a-query/160032)

<div class="topic-metadata">

**Author:** [@waleedkaramat](https://discuss.elastic.co/u/waleedkaramat)\
**Replies:** 3\
**Last updated:** [December 9, 2018, 8:46am UTC](https://discuss.elastic.co/t/searching-more-than-one-index-in-a-query/160032 "2018-12-09T08:46:01Z")

</div>

Hello All, I want to write a query to search more than one index in my cluster is it possible or not? Is there any way I can query more than one index in my single query ?

---

## [Autocomplete for City name with departure city as context](https://discuss.elastic.co/t/autocomplete-for-city-name-with-departure-city-as-context/160001)

<div class="topic-metadata">

**Author:** [@johnbenz13](https://discuss.elastic.co/u/johnbenz13)\
**Replies:** 0\
**Last updated:** [December 8, 2018, 10:17am UTC](https://discuss.elastic.co/t/autocomplete-for-city-name-with-departure-city-as-context/160001 "2018-12-08T10:17:37Z")

</div>

Hi I'm trying to create an autocomplete suggester for a travel website. You can enter a "From City" (New York, Chicago, Los Angeles, etc...) and then a "To City". I don't have any problem having Completion Suggester wor…

---

## [Elasticsearch keys](https://discuss.elastic.co/t/elasticsearch-keys/159997)

<div class="topic-metadata">

**Author:** [@15hawai15](https://discuss.elastic.co/u/15hawai15)\
**Replies:** 2\
**Last updated:** [December 8, 2018, 8:47am UTC](https://discuss.elastic.co/t/elasticsearch-keys/159997 "2018-12-08T08:47:30Z")

</div>

Binding key consisting of an injection type and an optional annotation. Matches the type and annotation at a point of injection. -\> this is comment from elasticsearch code. Is this representation of key from key-value st…

---

## [Elastic Search AllPermission security manager issue ...continued](https://discuss.elastic.co/t/elastic-search-allpermission-security-manager-issue-continued/159091)

<div class="topic-metadata">

**Author:** [@Vishal\_Goel](https://discuss.elastic.co/u/Vishal_Goel)\
**Replies:** 8\
**Last updated:** [December 8, 2018, 5:24am UTC](https://discuss.elastic.co/t/elastic-search-allpermission-security-manager-issue-continued/159091 "2018-12-08T05:24:02Z")

</div>

Hi, This is in continuation to following post: \[2018-09-15T00:04:42,632\]\[ERROR\]\[o.e.b.Bootstrap \] \[PC-VISHALG\] node validation exception \[1\] bootstrap checks failed \[1\]: granting the all permission effecti…

---

## [Search Problem](https://discuss.elastic.co/t/search-problem/159902)

<div class="topic-metadata">

**Author:** [@wmwmxch](https://discuss.elastic.co/u/wmwmxch)\
**Replies:** 0\
**Last updated:** [December 7, 2018, 10:21am UTC](https://discuss.elastic.co/t/search-problem/159902 "2018-12-07T10:21:28Z")

</div>

es.6x、es.net2.x var searchRequest = new SearchRequest(IndexName, TypeName) { Size = pageSize, From = (pageIndex - 1) \* pageSize, Query = new MatchPhraseQuery { Field = new Field() { Name = "Name" }, Query = "南方稳健成长" } };…

---

## [Kibana is triggering logs 300% more than usual](https://discuss.elastic.co/t/kibana-is-triggering-logs-300-more-than-usual/159596)

<div class="topic-metadata">

**Author:** [@Anam1](https://discuss.elastic.co/u/Anam1)\
**Replies:** 0\
**Last updated:** [December 5, 2018, 8:01pm UTC](https://discuss.elastic.co/t/kibana-is-triggering-logs-300-more-than-usual/159596 "2018-12-05T20:01:59Z")

</div>

kibana is Triggering logs three times more than usual I have updated ELK from 5.6 to 6.4 and the kibana dashboard works fine and all the services are active but the log volume in kibana is increased by 300% and also th…

---

## [Problem with relocating shard](https://discuss.elastic.co/t/problem-with-relocating-shard/159912)

<div class="topic-metadata">

**Author:** [@Zerobot](https://discuss.elastic.co/u/Zerobot)\
**Replies:** 1\
**Last updated:** [December 7, 2018, 11:11pm UTC](https://discuss.elastic.co/t/problem-with-relocating-shard/159912 "2018-12-07T23:11:31Z")

</div>

Hi! I've got a question regarding relocations of shards. I'm trying to relocate 4 shards, 2.5 GB each into another node using curator (from SSD to SSD). So I'm changing the box\_type from hot to warm, shards are relocatin…

---

## [Dynamic mapping templates: can it match on nesting depth?](https://discuss.elastic.co/t/dynamic-mapping-templates-can-it-match-on-nesting-depth/159619)

<div class="topic-metadata">

**Author:** [@chillenious](https://discuss.elastic.co/u/chillenious)\
**Replies:** 1\
**Last updated:** [December 7, 2018, 10:14pm UTC](https://discuss.elastic.co/t/dynamic-mapping-templates-can-it-match-on-nesting-depth/159619 "2018-12-07T22:14:03Z")

</div>

Hi! I'm using nested properties as a way to scope indexing data for different audiences. For example: { "internal": { "author": "Mikey Mike", "status": "RETIRED" }, "extcorp": { "name": "cool stuff", …

---

## [Throwing error when building elasticsearch cluster using the docker compose](https://discuss.elastic.co/t/throwing-error-when-building-elasticsearch-cluster-using-the-docker-compose/159976)

<div class="topic-metadata">

**Author:** [@ravikt](https://discuss.elastic.co/u/ravikt)\
**Replies:** 0\
**Last updated:** [December 7, 2018, 8:10pm UTC](https://discuss.elastic.co/t/throwing-error-when-building-elasticsearch-cluster-using-the-docker-compose/159976 "2018-12-07T20:10:17Z")

</div>

I am trying to set up an ElasticSearch cluster on AWS EC2 instance(Amazon Linux AMI) using the docker-compose.yml file. I am getting errorat the end when trying to run container using command docker-compose up . Could y…

[Previous page](https://discuss.elastic.co/c/elastic-stack/elasticsearch/6.md?page=1457)

[Next page](https://discuss.elastic.co/c/elastic-stack/elasticsearch/6.md?page=1459)
