UbuntuのAWS CLIを使用してAWS Cloudsearch(2013 API)ドメインのクエリを実行しようとしています。検索が特定のフィールドに限定されている場合、正常に動作するようにはできませんでした。次のクエリ:CLIを使用したAWS CloudSearchリクエストが無効なJavaScriptオブジェクトエラー
aws --profile myprofile cloudsearchdomain search
--endpoint-url "https://search-mydomain-abc123xyz.eu-west-1.cloudsearch.amazonaws.com"
--query-options {"fields":["my_field"]}
--query-parser "simple"
--return "my_field"
--search-query "foo bar"
...次のエラーが返されます。
An error occurred (SearchException) when calling the Search operation: q.options contains invalid javascript object
私は上記のクエリから--query-options
パラメータを削除した場合、それは動作します。私は、JSONは、二重引用符内に埋め込まれ、二重引用符を好きではないようドキュメントは少し誤解を招くと思い
aws-cli/1.11.150 Python/2.7.12 Linux/4.10.0-28-generic botocore/1.7.8