問題タブ [elasticsearch-6]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票する
1 に答える
480 参照

elasticsearch - Kibana /Elastic Search でネストされたフィールドを集約する

エラスティック キャッシュ 6 でインデックスを定義しました

次のように同じデータをロードしました

今、ディスカバー ページまたはビジュアライゼーション ページで検索しようとしていますが、空白が表示されます。

読み込まれたデータ

検索結果を発見する

視覚化

0 投票する
0 に答える
537 参照

elasticsearch - Elasticsearch:大文字と小文字を区別する用語クエリを実現するには?

大文字と小文字を区別する unit というフィールド (kWh など) でアイテムをクエリしようとしましたが、用語クエリは kwh (小文字の W) をクエリした場合にのみ一致します。私がドキュメントで見たのは、用語は大文字と小文字を区別するための正しい用語である必要があるため、何が間違っているのかわかりません。

他のフィールドでもこれらのクエリを作成し、完全一致の動作を保証したいので、ここでは一致を使用したくありません。クエリがどのように正しいのか、このクエリという用語が機能しない理由を誰か教えてもらえますか?

この dockerimage をサーバーとして使用しています。

docker.elastic.co/elasticsearch/elasticsearch:6.2.4

0 投票する
1 に答える
1424 参照

c# - C# Nest & Elasticsearch 6.x : ネストされたフィールドをフィルタリング/カウントする方法 (内部リスト内))

Here is my mapping

[ElasticsearchType(Name = "Topic")]
public class Topic
{
    [Number(NumberType.Integer, Coerce = true)]
    public EnumS

Here is my mapping

I have 10 documents of type Topic in the index, each KeywordValues property/field of the type List<KeywordValue> contains 5 KeywordValue (5 elements in the list).

9 documents have status "Enabled";

I'm trying to count the total number of elements in each nested KeywordValues field. The result returned is 9 but I would like to get 45 (9*5)

I'm doing this:

Raw query equivalent:

Any idea? Thanks a lot.


NPM Insall error (Angular 6)

I have an Angular 6 project and when I try to execute it, it throws the following error:

I tried to update the packages but when I run npm install command, cmd throws the following message:

I searched some solutions here, here, here and here, tried to reinstall Node, reinstall Angular and even searched in some unresolved questions but nothing worked for me.

I also tried this solution and run npm clean cache -f but didn't work.

I don't know how to proceed.

I'm using Angular CLI: 6.0.1 and Node: 8.11.2

0 投票する
1 に答える
121 参照

php - Elasticsearch PHPのネストされた集計

試しに検索してみました。ネストされたフィールドをグループ化する必要があります。SQL クエリは次のとおりです。