<p dir="auto">Say I have two indexes, one with a field named "sortfield" and the other is missing a mapping for this field.</p>
<p dir="auto">I'd like to run a query against both indexes and sort on sortfield. The index that does not contain this value would treat it as being missing and then use the logic defined in this feature to determine if they go at top or bottom:<br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="667519" data-permission-text="Title is private" data-url="https://github.com/elastic/elasticsearch/issues/772" data-hovercard-type="issue" data-hovercard-url="/elastic/elasticsearch/issues/772/hovercard" href="https://github.com/elastic/elasticsearch/issues/772">#772</a></p>
<p dir="auto">Let me know if there are any questions.</p>
<p dir="auto">Thanks!</p>
<p dir="auto">This is a follow up to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="667519" data-permission-text="Title is private" data-url="https://github.com/elastic/elasticsearch/issues/772" data-hovercard-type="issue" data-hovercard-url="/elastic/elasticsearch/issues/772/hovercard" href="https://github.com/elastic/elasticsearch/issues/772">#772</a> that supports special sorting for 'null' values for numeric fields. The same would be very useful for (not analyzed) string fields as well. If feasible, special handling for empty and blank strings would be useful. The latter is however optional as it is possible to achieve uniform handling by filtering out blank values at indexing time.</p>