我对Elasticsearch排序有问题

时间:2018-08-01 07:28:19

标签: elasticsearch

Array
(
[index] => joblisting_bootstrap_new1,joblisting_bootstrap_new2,joblisting_bootstrap_new3,joblisting_bootstrap_new4
[type] => job
[size] => 67
[from] => 0
[body] => Array
    (
        [sort] => Array
            (
                [id] => Array
                    (
                        [order] => desc
                    )

            )

        [query] => Array
            (
                [query_string] => Array
                    (
                        [query] => (location:"Germany") AND (approve:Active)
                        [default_operator] => AND
                        [fields] => Array
                            (
                                [0] => jobrole
                                [1] => description
                                [2] => tag
                                [3] => mandatoryskills
                                [4] => desirableskills
                                [5] => responsibilties
                                [6] => sector
                                [7] => sub_sector
                                [8] => roles
                                [9] => levels
                                [10] => job_feed_company_name
                                [11] => location
                                [12] => city
                                [13] => e_u_organization
                            )

                    )

            )

    )

以上是我传递的用于对弹性搜索结果进行排序的参数,我无法获得预期的结果。

它没有对结果进行排序

谢谢。

0 个答案:

没有答案