# Different sort field responses from different (but identical) nodes?

**URL:** https://discuss.elastic.co/t/different-sort-field-responses-from-different-but-identical-nodes/23253
**Category:** Elasticsearch
**Created:** [April 15, 2015, 2:18pm UTC](https://discuss.elastic.co/t/different-sort-field-responses-from-different-but-identical-nodes/23253 "2015-04-15T14:18:22Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Tom\_Miller](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tom_miller/32/774_2.png) [@Tom\_Miller](https://discuss.elastic.co/u/Tom_Miller)
#### Post date: [April 15, 2015, 2:18pm UTC](https://discuss.elastic.co/t/different-sort-field-responses-from-different-but-identical-nodes/23253/1 "2015-04-15T14:18:22Z")

</div>

I have a 2 node cluster, and both nodes are identical (version, plugins,  
memory - everything from the node API is identical other than the IPs and  
Mac Addresses). The mappings for my indexes are also identical. My cluster  
is also in Green state.

However, when I perform a search, the sort response field (which is a date  
field) is different depending on the node the request hits.

For example, here is a result from node A (condensed for clarity):

{  
"took": 189,  
"timed\_out": false,  
"\_shards": {  
"total": 5,  
"successful": 5,  
"failed": 0  
},  
"hits": {  
"total": 6,  
"max\_score": null,  
"hits": [  
{  
"\_index": "egroup",  
"\_type": "invoice",  
"\_id": "6\_12902",  
"\_score": null,  
"\_source": {...},  
"sort": [  
"P\u0002\u0000\u0000"  
]  
},  
{  
"\_index": "egroup",  
"\_type": "invoice",  
"\_id": "6\_10297",  
"\_score": null,  
"\_source": {...},  
"sort": [  
"P\u0002\u0000\u0000"  
]  
},  
{  
"\_index": "egroup",  
"\_type": "cashBook",  
"\_id": "6\_255",  
"\_score": null,  
"\_source": {...},  
"sort": [  
"20140103t000000z"  
]  
}  
]  
}  
}

Check out the sort field - weird!

Here is a result from Node B (which is a correct response):

{  
"took": 528,  
"timed\_out": false,  
"\_shards": {  
"total": 5,  
"successful": 5,  
"failed": 0  
},  
"hits": {  
"total": 6,  
"max\_score": null,  
"hits": [  
{  
"\_index": "egroup",  
"\_type": "invoice",  
"\_id": "6\_12902",  
"\_score": null,  
"\_source": {...},  
"sort": [  
1421712000000  
]  
},  
{  
"\_index": "egroup",  
"\_type": "invoice",  
"\_id": "6\_10297",  
"\_score": null,  
"\_source": {...},  
"sort": [  
1411430400000  
]  
},  
{  
"\_index": "egroup",  
"\_type": "cashBook",  
"\_id": "6\_255",  
"\_score": null,  
"\_source": {...},  
"sort": [  
-9223372036854776000  
]  
}  
]  
}  
}

Anyone have any idea what is going on?

Thanks,

Tom.

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/df533bfb-bf67-4766-b3ed-f6e6cc2f89b7%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/df533bfb-bf67-4766-b3ed-f6e6cc2f89b7%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [July 6, 2017, 12:19am UTC](https://discuss.elastic.co/t/different-sort-field-responses-from-different-but-identical-nodes/23253/2 "2017-07-06T00:19:37Z")

</div>


