0

エラスティック検索からデータを取得しようとすると、解析例外が発生します。私のドキュメントは次のようになります

{
        "_index": "some name",
        "_type": "row",
        "_id": "665",
        "_score": 6.3700795,
        "_source": {
           "dateOfClaim": 1215986400000,
           "employer": {
              "username": null,
              "password": null,
              "name": "customer",
              "customerNumber": "some number",
              "dosierNumbers": null
           },
           "recipient": {
              "username": null,
              "password": null,
              "name": "some name",
              "taxNumber": "some number"
           },
           "claim": 402401,
           "dosierNumber": "",
           "worthWayTaxes": "",
           "good": {
              "brutoWeight": 25,
              "nettoWeight": 25050,
              "coll": 25000,
              "taxWorth": "58830.67",
              "eori": ""
           },
           "poDValues": "YES",
           "correctedTaxNumber": null,
           "note": null
        }
     },

私のクエリは次のようになります

POST /customs/_search
{
    "nested" : {
        "path" : "employer",
        "score_mode" : "none",
        "query" : {
            "match": {
               "employer.name" : "customer"
            }
        }
    }
}

poDValue が NO である特定の雇用主のすべてのドキュメントを取得したいと考えています。しかし、poDValue を NO にする必要があると言わなくても、私のクエリでは既に parseexception (フェーズ: [クエリ] ですべてのシャードが失敗しました) が返されます。

4

1 に答える 1