我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

如何在Elastic Search-PHP [1.0]客户端中返回特定字段

I am using Elasticsearch-PHP [1.0] client (link below):

[1]: https://www.elastic.co/guide/en/elasticsearch/client/php-api/current/_quickstart.html

I want to return specific fields from elastic search..I have written the following code :

$params['body']['fields'] = ["title","prod_desc"];

but it's not working..Please Help..

近期文章

  • 如何在Woocommerce产品中添加可选的浇头选项?
  • MongoDB登录表单不起作用
  • Laravel 5找不到驱动程序问题
  • 将整个MYSQL语句从android传递给PHP
  • 如何使用OAuth2实现登录API端点
  • 错误:间接修改重载属性
  • 未捕获的TypeError:无法读取未定义的属性“数据集”
  • 如何为所有网址设置curl_setopt以使用curl下载网址?
  • 用$ list(wordpress)中的斜杠分隔多个元值
  • 如何在codeigniter中使用ajax在mysql数据库中插入数据?
  • 从REST API处理客户端错误
  • oracle序列和并发
  • 用C#代码写一个数据库导入系统,只是将excel表导入到SQL2008数据库中
  • if if条件在htaccess for admin和frontend在open cart中?
  • file_exists在XAMPP上返回false
  • Drupal + Google登录
  • 未设定的对象值
  • Wordpress - 小工具参数
  • 将数组的集合转换为对象
  • 404在POST上但在GET Slim应用程序上没有

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华