# Elasticsearch

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

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

**Page:** 1741

---

## [Using constant\_score combined with multi\_match cross\_field](https://discuss.elastic.co/t/using-constant-score-combined-with-multi-match-cross-field/123487)

<div class="topic-metadata">

**Author:** [@ahmadazimi](https://discuss.elastic.co/u/ahmadazimi)\
**Replies:** 1\
**Last updated:** [March 26, 2018, 4:17pm UTC](https://discuss.elastic.co/t/using-constant-score-combined-with-multi-match-cross-field/123487 "2018-03-26T16:17:07Z")

</div>

I've tried to use cross\_field query to search over multiple fields with completely different boosts. But TF/IDF makes the results so bad because I just want to see if a term exist in the fields or not (but if exists, app…

---

## [Wrong Lucene vrsion in current 6.2.3 ES Java Client](https://discuss.elastic.co/t/wrong-lucene-vrsion-in-current-6-2-3-es-java-client/125619)

<div class="topic-metadata">

**Author:** [@suikast42](https://discuss.elastic.co/u/suikast42)\
**Replies:** 3\
**Last updated:** [March 26, 2018, 3:41pm UTC](https://discuss.elastic.co/t/wrong-lucene-vrsion-in-current-6-2-3-es-java-client/125619 "2018-03-26T15:41:02Z")

</div>

I try to use the new Java elasticsearch-rest-high-level-client. For that I added the maven depenencies shown below: org.elasticsearch elasticsearch ${version.es} compile org.elasticsearch.client elasticsearc…

---

## [Custom analyzer on match\_phrase](https://discuss.elastic.co/t/custom-analyzer-on-match-phrase/123846)

<div class="topic-metadata">

**Author:** [@bunch\_of\_bytes](https://discuss.elastic.co/u/bunch_of_bytes)\
**Replies:** 5\
**Last updated:** [March 26, 2018, 1:13pm UTC](https://discuss.elastic.co/t/custom-analyzer-on-match-phrase/123846 "2018-03-26T13:13:00Z")

</div>

Hi, I am quite puzzled by using analyzer on one of my search fields. Here is the mapping: {"settings": { "analysis": { "filter": { "filter\_shingle":{ "type":"shingle", "m…

---

## [ElasticSearch 5.6 Using ingest processors to modify GET response](https://discuss.elastic.co/t/elasticsearch-5-6-using-ingest-processors-to-modify-get-response/124548)

<div class="topic-metadata">

**Author:** [@AlgoRhymes](https://discuss.elastic.co/u/AlgoRhymes)\
**Replies:** 12\
**Last updated:** [March 26, 2018, 1:01pm UTC](https://discuss.elastic.co/t/elasticsearch-5-6-using-ingest-processors-to-modify-get-response/124548 "2018-03-26T13:01:24Z")

</div>

Hello all! I want to implement an ElasticSearch plugin to pseudonymize data (or use something that already exists, but I didn't find anything that fits). I can use ingest nodes and pseudonymize fields via pipeline befor…

---

## [Can I sort results by price and take sold out product to last of results?](https://discuss.elastic.co/t/can-i-sort-results-by-price-and-take-sold-out-product-to-last-of-results/125568)

<div class="topic-metadata">

**Author:** [@nutanek1](https://discuss.elastic.co/u/nutanek1)\
**Replies:** 1\
**Last updated:** [March 26, 2018, 12:53pm UTC](https://discuss.elastic.co/t/can-i-sort-results-by-price-and-take-sold-out-product-to-last-of-results/125568 "2018-03-26T12:53:27Z")

</div>

I have a problem that is I want to sort product by price (desc) and want sold out product shows at the last of results like below. { "price": 1000 "inventory": 2 } { "price": 500 "inventory": 10 } { …

---

## [Elasticsearch is poisonous ~(+﹏+)~](https://discuss.elastic.co/t/elasticsearch-is-poisonous/125573)

<div class="topic-metadata">

**Author:** [@ver007](https://discuss.elastic.co/u/ver007)\
**Replies:** 3\
**Last updated:** [March 26, 2018, 12:50pm UTC](https://discuss.elastic.co/t/elasticsearch-is-poisonous/125573 "2018-03-26T12:50:50Z")

</div>

:sweat\_smile: Please forgive me for taking the liberty that Elasticsearch is poisonous. Each time ElasticSearch is updated, some query APIs connection APIs ，and previous versions are incompatible, Old code cannot direct…

---

## [Superuser unable to manage xpack security](https://discuss.elastic.co/t/superuser-unable-to-manage-xpack-security/124755)

<div class="topic-metadata">

**Author:** [@annk](https://discuss.elastic.co/u/annk)\
**Replies:** 13\
**Last updated:** [March 26, 2018, 11:54am UTC](https://discuss.elastic.co/t/superuser-unable-to-manage-xpack-security/124755 "2018-03-26T11:54:29Z")

</div>

I lost the elastic user password since I activated x-pack , I created a new superuser called admin /bin/x-pack/users list admin : superuser now when I access the kibana -\> management -\> security -\> Roles / User…

---

## [Having trouble executing isin query from Pyspark to elastic](https://discuss.elastic.co/t/having-trouble-executing-isin-query-from-pyspark-to-elastic/125590)

<div class="topic-metadata">

**Author:** [@Ankit\_gupta1](https://discuss.elastic.co/u/Ankit_gupta1)\
**Replies:** 0\
**Last updated:** [March 26, 2018, 11:08am UTC](https://discuss.elastic.co/t/having-trouble-executing-isin-query-from-pyspark-to-elastic/125590 "2018-03-26T11:08:37Z")

</div>

Hi, I've trying to implement a simple scenario to get data from elastic into my spark program. I have two indexes First one is search index using this i am fetching messageIds on the basis of a matching value from one…

---

## [Result window is too large, from + size must be less than or equal to: \[10000\] but was \[10050\]](https://discuss.elastic.co/t/result-window-is-too-large-from-size-must-be-less-than-or-equal-to-10000-but-was-10050/124392)

<div class="topic-metadata">

**Author:** [@David\_Jacob](https://discuss.elastic.co/u/David_Jacob)\
**Replies:** 8\
**Last updated:** [March 26, 2018, 11:06am UTC](https://discuss.elastic.co/t/result-window-is-too-large-from-size-must-be-less-than-or-equal-to-10000-but-was-10050/124392 "2018-03-26T11:06:30Z")

</div>

I am trying to do pagination for my data in elastic search. But I was not able fetch beyond 10000. I found that it is doable through "top hits aggregation" https://www.elastic.co/guide/en/elasticsearch/reference/6.2/se…

---

## [Document Ids using the Suggester](https://discuss.elastic.co/t/document-ids-using-the-suggester/125589)

<div class="topic-metadata">

**Author:** [@han1](https://discuss.elastic.co/u/han1)\
**Replies:** 0\
**Last updated:** [March 26, 2018, 11:03am UTC](https://discuss.elastic.co/t/document-ids-using-the-suggester/125589 "2018-03-26T11:03:35Z")

</div>

I know that if you have a field called Id, then Elasticsearch will use that field as the Id of the document. However, we want Elasticsearch to create the Ids for us. We are using the Suggester and we need to access the…

---

## [Differences between with .raw and without .raw](https://discuss.elastic.co/t/differences-between-with-raw-and-without-raw/125579)

<div class="topic-metadata">

**Author:** [@shwesinhan](https://discuss.elastic.co/u/shwesinhan)\
**Replies:** 1\
**Last updated:** [March 26, 2018, 10:23am UTC](https://discuss.elastic.co/t/differences-between-with-raw-and-without-raw/125579 "2018-03-26T10:23:32Z")

</div>

hi does anyone explain differences between with .raw and without .raw? eg: { "query": { "bool": { "must": \[ { "term": { "project\_type.raw": "TEST" } } \] } } } { "query": { "bool": { "must": \[ { "te…

---

## [Status red of elastic search](https://discuss.elastic.co/t/status-red-of-elastic-search/125582)

<div class="topic-metadata">

**Author:** [@clock21am](https://discuss.elastic.co/u/clock21am)\
**Replies:** 0\
**Last updated:** [March 26, 2018, 10:20am UTC](https://discuss.elastic.co/t/status-red-of-elastic-search/125582 "2018-03-26T10:20:07Z")

</div>

on running this command "http://xx.xxx.xx.xx:9200/\_cluster/allocation/explain" I am getting this. the shard cannot be allocated to the same node on which a copy of the shard already exists can you please explain me the…

---

## [Indexing in elastic search using NEST returns 403 error](https://discuss.elastic.co/t/indexing-in-elastic-search-using-nest-returns-403-error/125158)

<div class="topic-metadata">

**Author:** [@rezajp](https://discuss.elastic.co/u/rezajp)\
**Replies:** 2\
**Last updated:** [March 26, 2018, 9:56am UTC](https://discuss.elastic.co/t/indexing-in-elastic-search-using-nest-returns-403-error/125158 "2018-03-26T09:56:20Z")

</div>

I have recently started learning/using elasticsearch and I am trying to index some documents using NEST (c# client) but after I index one document or run a bulk index the read\_only\_allow\_delete is set to true in the inde…

---

## [Courier Fetch: N of N shards failed in kibana](https://discuss.elastic.co/t/courier-fetch-n-of-n-shards-failed-in-kibana/124498)

<div class="topic-metadata">

**Author:** [@shwesinhan](https://discuss.elastic.co/u/shwesinhan)\
**Replies:** 6\
**Last updated:** [March 26, 2018, 8:51am UTC](https://discuss.elastic.co/t/courier-fetch-n-of-n-shards-failed-in-kibana/124498 "2018-03-26T08:51:16Z")

</div>

hi there. i run elk since 6 months ago. it is being stable. but these days i got this msg very often courier Fetch: 23 of 420 shards failed. could anybody explain on this msg? i have no idea how to fix. my scenar…

---

## [Parse exceptionin querystring](https://discuss.elastic.co/t/parse-exceptionin-querystring/125562)

<div class="topic-metadata">

**Author:** [@ckant](https://discuss.elastic.co/u/ckant)\
**Replies:** 1\
**Last updated:** [March 26, 2018, 8:45am UTC](https://discuss.elastic.co/t/parse-exceptionin-querystring/125562 "2018-03-26T08:45:37Z")

</div>

The following query { "query": { "query\_string": { "query": "content\_type:application/pdf", "analyze\_wildcard": true, "minimum\_should\_match": "1" } } } gives me following parse exception : Cannot parse 'cont…

---

## [Removing decommissionned nodes from Monitoring?](https://discuss.elastic.co/t/removing-decommissionned-nodes-from-monitoring/125493)

<div class="topic-metadata">

**Author:** [@omeugdoj](https://discuss.elastic.co/u/omeugdoj)\
**Replies:** 2\
**Last updated:** [March 26, 2018, 8:17am UTC](https://discuss.elastic.co/t/removing-decommissionned-nodes-from-monitoring/125493 "2018-03-26T08:17:06Z")

</div>

I have a few Logstash instances running, and I decommissioned one a few days ago. It will never go back online as I don't need it anymore. But it still appears in Monitoring in Kibana via XPack. How can I remove it from…

---

## [Want a user to access only his index](https://discuss.elastic.co/t/want-a-user-to-access-only-his-index/125492)

<div class="topic-metadata">

**Author:** [@mohsinhafeez](https://discuss.elastic.co/u/mohsinhafeez)\
**Replies:** 4\
**Last updated:** [March 26, 2018, 8:17am UTC](https://discuss.elastic.co/t/want-a-user-to-access-only-his-index/125492 "2018-03-26T08:17:05Z")

</div>

Hope you are doing well. I am trying to setup a customer, I want this customer to be able to access only the index which I have created for it. Right now, it is able to access all the indexes, I want it to be able to acc…

---

## [Elasticsearch architecture and planing](https://discuss.elastic.co/t/elasticsearch-architecture-and-planing/125504)

<div class="topic-metadata">

**Author:** [@learnhub17](https://discuss.elastic.co/u/learnhub17)\
**Replies:** 2\
**Last updated:** [March 26, 2018, 8:12am UTC](https://discuss.elastic.co/t/elasticsearch-architecture-and-planing/125504 "2018-03-26T08:12:50Z")

</div>

Hi, we are doing poc to use ES in production, I am trying to learn best practice how to use it in production. My concern point is: When we have a heavy write environment then what is the best architecture we configure…

---

## [The final mapping would have more than 1 type Error - Intermittent](https://discuss.elastic.co/t/the-final-mapping-would-have-more-than-1-type-error-intermittent/125370)

<div class="topic-metadata">

**Author:** [@sahadevgd](https://discuss.elastic.co/u/sahadevgd)\
**Replies:** 2\
**Last updated:** [March 26, 2018, 7:28am UTC](https://discuss.elastic.co/t/the-final-mapping-would-have-more-than-1-type-error-intermittent/125370 "2018-03-26T07:28:02Z")

</div>

Hi Team, I am currently observing the below error. Strangely, it worked for the first time, later on I had to an additional field (Tag) to my data and that was the only change I have done and now i get the mapping error…

---

## [Getting error while configuring watcher alerts](https://discuss.elastic.co/t/getting-error-while-configuring-watcher-alerts/125470)

<div class="topic-metadata">

**Author:** [@jskumar](https://discuss.elastic.co/u/jskumar)\
**Replies:** 2\
**Last updated:** [March 26, 2018, 7:20am UTC](https://discuss.elastic.co/t/getting-error-while-configuring-watcher-alerts/125470 "2018-03-26T07:20:05Z")

</div>

Hi, I want to set watcher alert in which it should alert me if there is any 5XX calls for more than 1 hour. I using this code but it is giving me "ParsingException\[\[match\] malformed query, expected \[END\_OBJECT\] but foun…

---

## [How to setup Elasticsearch to force single shard per node for new indices?](https://discuss.elastic.co/t/how-to-setup-elasticsearch-to-force-single-shard-per-node-for-new-indices/125254)

<div class="topic-metadata">

**Author:** [@Aleksey\_Chudov](https://discuss.elastic.co/u/Aleksey_Chudov)\
**Replies:** 3\
**Last updated:** [March 26, 2018, 6:38am UTC](https://discuss.elastic.co/t/how-to-setup-elasticsearch-to-force-single-shard-per-node-for-new-indices/125254 "2018-03-26T06:38:02Z")

</div>

Hi, I'm responsible for managing Elasticsearch 2.4 cluster for Graylog Log Management system. The cluster consists of 13 nodes located in 3 data centers: Data center A: nodeA1 (master) Data center B: nodeB1 (master, d…

---

## [Querying tokens at the same position](https://discuss.elastic.co/t/querying-tokens-at-the-same-position/125540)

<div class="topic-metadata">

**Author:** [@jeko](https://discuss.elastic.co/u/jeko)\
**Replies:** 0\
**Last updated:** [March 26, 2018, 5:07am UTC](https://discuss.elastic.co/t/querying-tokens-at-the-same-position/125540 "2018-03-26T05:07:47Z")

</div>

Hello, I built a analyzer plugin that tokenizes XML. It generates 1 token per XML attribute, all tokens for a XML node are set at the same position. I need a clean way to search for XML node that have multiple criteria…

---

## [Terms lookup based on ids matching query](https://discuss.elastic.co/t/terms-lookup-based-on-ids-matching-query/125514)

<div class="topic-metadata">

**Author:** [@Patrick\_Lam](https://discuss.elastic.co/u/Patrick_Lam)\
**Replies:** 1\
**Last updated:** [March 25, 2018, 11:02pm UTC](https://discuss.elastic.co/t/terms-lookup-based-on-ids-matching-query/125514 "2018-03-25T23:02:34Z")

</div>

Hi, I'm looking for something similar to the terms lookup filter but slightly different. Let's assume that I have two indexes. One is an index of tweets with the user ID as a field. The other is a list of user profiles …

---

## [Elasticsearch illegal\_argument\_exception error](https://discuss.elastic.co/t/elasticsearch-illegal-argument-exception-error/125110)

<div class="topic-metadata">

**Author:** [@sameera207](https://discuss.elastic.co/u/sameera207)\
**Replies:** 2\
**Last updated:** [March 25, 2018, 10:44pm UTC](https://discuss.elastic.co/t/elasticsearch-illegal-argument-exception-error/125110 "2018-03-25T22:44:35Z")

</div>

Hi All, I'm working on a rails 5.0.6 project with Elasticsearch 2.4. I'm using searchkick. My question is, I'm getting the following error when I try to reindex. (I understand some of the values in the error is maybe sp…

---

## [Why types have been removed in ES 6.0?](https://discuss.elastic.co/t/why-types-have-been-removed-in-es-6-0/125517)

<div class="topic-metadata">

**Author:** [@MaKro](https://discuss.elastic.co/u/MaKro)\
**Replies:** 1\
**Last updated:** [March 25, 2018, 9:32pm UTC](https://discuss.elastic.co/t/why-types-have-been-removed-in-es-6-0/125517 "2018-03-25T21:32:39Z")

</div>

Hi. I'm wondering why types have been removed completely in ElasticSeach 6.0 ? I have read that they have been removed, because users were using elasticsearch like databases and also there were namespace issues in mapp…

---

## [Import JSON file in ElasticSearch for visualization in Kibana](https://discuss.elastic.co/t/import-json-file-in-elasticsearch-for-visualization-in-kibana/125512)

<div class="topic-metadata">

**Author:** [@bpescador](https://discuss.elastic.co/u/bpescador)\
**Replies:** 0\
**Last updated:** [March 25, 2018, 8:23pm UTC](https://discuss.elastic.co/t/import-json-file-in-elasticsearch-for-visualization-in-kibana/125512 "2018-03-25T20:23:10Z")

</div>

Can someone suggest a strategy for importing json results into ElasticSearch from the AntWeb.org API: https://www.antweb.org/api.do example json (of 630,000 records): "specimens": \[ { "antwebTaxonName": "myrmicinaete…

---

## [How to map such object fields](https://discuss.elastic.co/t/how-to-map-such-object-fields/125489)

<div class="topic-metadata">

**Author:** [@ssasporta](https://discuss.elastic.co/u/ssasporta)\
**Replies:** 5\
**Last updated:** [March 25, 2018, 6:59pm UTC](https://discuss.elastic.co/t/how-to-map-such-object-fields/125489 "2018-03-25T18:59:55Z")

</div>

How to map such fields? file.encoding = UTF-8 file.encoding.pkg = sun.io file.separator = / Thanks Sharon.

---

## [How can I remove duplicated keyword with the same category in ElasticSearch?](https://discuss.elastic.co/t/how-can-i-remove-duplicated-keyword-with-the-same-category-in-elasticsearch/125477)

<div class="topic-metadata">

**Author:** [@nutanek1](https://discuss.elastic.co/u/nutanek1)\
**Replies:** 3\
**Last updated:** [March 25, 2018, 6:37pm UTC](https://discuss.elastic.co/t/how-can-i-remove-duplicated-keyword-with-the-same-category-in-elasticsearch/125477 "2018-03-25T18:37:17Z")

</div>

I want to build completion suggester in ElasticSearch. I have data look like this. { "suggest": { "input": \["iphone", "iphone x"\] }, "category\_id": 1 }, { "suggest": { "input": \["iphone…

---

## [Aggregations with geo\_bounding\_box?](https://discuss.elastic.co/t/aggregations-with-geo-bounding-box/125498)

<div class="topic-metadata">

**Author:** [@Tyki](https://discuss.elastic.co/u/Tyki)\
**Replies:** 0\
**Last updated:** [March 25, 2018, 4:39pm UTC](https://discuss.elastic.co/t/aggregations-with-geo-bounding-box/125498 "2018-03-25T16:39:08Z")

</div>

Hello, I'm working on a side project using map. My goal is to display all the points that are in the viewport of the user. Actually, I'm doing a search/scroll with a geo\_bounding\_box filter, fetch all the points and w…

---

## [TransportClient: InvalidTypeNameException prepareCreate addMapping](https://discuss.elastic.co/t/transportclient-invalidtypenameexception-preparecreate-addmapping/125487)

<div class="topic-metadata">

**Author:** [@Joseph\_Peruzzi](https://discuss.elastic.co/u/Joseph_Peruzzi)\
**Replies:** 0\
**Last updated:** [March 25, 2018, 1:39pm UTC](https://discuss.elastic.co/t/transportclient-invalidtypenameexception-preparecreate-addmapping/125487 "2018-03-25T13:39:39Z")

</div>

I'm attempting to work with the JAVA API to create mapping types and I'm following the Java API documentation for managing indices (https://www.elastic.co/guide/en/elasticsearch/client/java-api/current/java-admin-indices…

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

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