Elasticsearch search api - return value contains "write file"

I've this search array during the php client 2.0 - search api call on elasticsearch 2.3.1 and not sure why some data doesn't return all the field and the value contains "write file". I can find those in kibana though. Anyone had this before and know why?

Array
(
[index] => daily_summary_mobile_geo*
[body] => Array
(
[_source] => Array
(
[0] => @timestamp
[1] => record_campId
[2] => record_affiliateId
[3] => device_os
[4] => device_os_version
[5] => record_country
[6] => record_impression
[7] => record_click
[8] => record_lead
[9] => record_theyGet
[10] => record_weGet
)

        [sort] => Array
            (
                [record_campId] => Array
                    (
                        [order] => desc
                    )

            )

        [query] => Array
            (
                [bool] => Array
                    (
                        [must] => Array
                            (
                                [0] => Array
                                    (
                                        [range] => Array
                                            (
                                                [@timestamp] => Array
                                                    (
                                                        [gte] => 1491004800000
                                                        [lt] => 1491436800000
                                                        [format] => epoch_millis
                                                    )

                                            )

                                    )

                            )

                   )

            )

        [from] => 0
        [size] => 25
    )

)

Return:

[hits] => Array
(
[0] => Array
(
[_index] => daily_summary_mobile_geo-2017
[_type] => log
[_id] => AVs3foc8GoRGyVWoAOos
[_score] =>
[_source] => Array
(
[@timestamp] => 2017-04-03T22:59:59.000Z
[record_campId] => write file
)

                        [sort] => Array
                            (
                                [0] => write file 
                            )

                    ).....

Hey,

it is hard/impossible to follow this example with the different highlighting. If you create a curl based example (including index creation, mapping setup, document indexing and then the query), it will be light years easier to help you.

--Alex

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.