【发布时间】:2014-05-12 14:45:18
【问题描述】:
我已经搜索了几天如何使用数组作为参数或 JSON 格式从 Elasticsearch 查询数据,如本页所示 http://www.elasticsearch.org/guide/en/elasticsearch/client/php-api/current/_quickstart.html 但不能使用 lucene 样式的查询字符串。有什么方法可以使用带有 Elasticsearch PHP Client API 的 lucene 样式查询字符串从 Elasticsearch 查询数据,例如 (type:apache-access OR type:apache-error)?
【问题讨论】:
-
您是否考虑过使用另一个 Elasticsearch PHP 客户端?喜欢Elastica?
标签: php elasticsearch query-string