我正在收集$_GET['id'];
的个人资料结果,并尝试按照我的搜索记录中存在的名称对其进行排序。
配置文件对象如下:
elasticsearch
我正在尝试做以下事情:
{
_index: "apiprofile",
_type: "profiles",
_id: "12",
_version: 66,
found: true,
_source: {
id: 12,
substring_name: "Marianne Luettgen",
overview: "Voluptate consequatur aliquid sed. Omnis ducimus est omnis facilis culpa nemo repellendus. Laudantium dolore et laboriosam consequatur labore quia harum ipsam.",
picture: "http://d1cesmq0xhh7we.cloudfront.net/e01ae780-480d-4987-849a-9b7449fdf67ecircle_medium__v1__.png",
licence_number: "http://www.champlin.com/vel-quia-suscipit-possimus-cupiditate-ea",
deleted_at: null,
user_id: 13,
profile_type_id: 1,
parent_profile_id: null,
is_featured: 0,
pin: {},
services_en: [],
services_description_en: [],
services_object_en: [],
},
}
但我不能让这个工作?所以任何人都可以解释我做错了什么以及有什么方法可以做到这一点?