<p dir="auto">The item (and mapping) do not exist in one of the indexes but exists in the other indexes. A sort is performed.</p>
<p dir="auto">Works fine when the sort is removed from the query.</p>
<p dir="auto">Here is a gist.<br>
<a href="https://gist.github.com/1820642">https://gist.github.com/1820642</a></p>
<p dir="auto">We currently have a very large maven build system, comprising of 6k lines of xml. While maven parent POMs have been very useful in de-duplicating build logic across elasticsearch and plugins, the rigidity of maven has required us to begin implementing most of our test logic through <code class="notranslate">maven-antrun-plugin</code>. Another major problem with multi-module builds is trap: building a module requires explicitly listing an upstream module in order to get a local build of the dependency, or building from a higher level module (which implicitly builds all sub-modules). And finally, the maven model is incapable of decoupling test dependencies from main dependencies, in that tests for module A, cannot depend on module B, which in turn depends on module A (this is <em>not</em> a cycle).</p>
<p dir="auto">I have a branch which contains elasticsearch switched to using gradle:<br>
<a href="https://github.com/elastic/elasticsearch/tree/burn_maven_with_fire">https://github.com/elastic/elasticsearch/tree/burn_maven_with_fire</a></p>
<p dir="auto">This is a tracking issue for completing the migration to gradle. The tasks are separated into two groups: those remaining required before pushing to master (as to not completely break development), and those required for the migration to be complete, which must happen before the next release (tentatively 2.2).</p>
<p dir="auto">Required for master push:</p>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Maven publishing</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Windows integ test support</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Setup publishing of buildSrc (ie ES gradle build plugins)</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Publish "attach project plugin" (allows dynamically including a multi-project build inside another build)</li>
</ul>
<p dir="auto">Required for release:</p>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Copyright header check</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Vagrant qa tests</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Multi node qa tests (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="118296346" data-permission-text="Title is private" data-url="https://github.com/elastic/elasticsearch/issues/14921" data-hovercard-type="pull_request" data-hovercard-url="/elastic/elasticsearch/pull/14921/hovercard" href="https://github.com/elastic/elasticsearch/pull/14921">#14921</a>)</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Rpm/deb building complete</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Rpm signing</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Distribution tests</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Update plugins not in elasticsearch repo to use ES gradle build plugins (mapper attachment: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="115600954" data-permission-text="Title is private" data-url="https://github.com/elastic/elasticsearch-mapper-attachments/issues/184" data-hovercard-type="pull_request" data-hovercard-url="/elastic/elasticsearch-mapper-attachments/pull/184/hovercard" href="https://github.com/elastic/elasticsearch-mapper-attachments/pull/184">elastic/elasticsearch-mapper-attachments#184</a>)</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Document new ES gradle build plugins (for ES plugin authors)</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Document building/testing in README/TESTING (this is done except for jacoco reports)</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> integ tests parity: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="114752139" data-permission-text="Title is private" data-url="https://github.com/elastic/elasticsearch/issues/14464" data-hovercard-type="issue" data-hovercard-url="/elastic/elasticsearch/issues/14464/hovercard" href="https://github.com/elastic/elasticsearch/issues/14464">#14464</a></li>
</ul>
<p dir="auto">Addtional nice to haves:</p>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Make qa plugins work in eclipse (need to configure custom classpath)</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Add <code class="notranslate">run</code> task for elasticsearch and plugins to replace <code class="notranslate">run.sh</code>/<code class="notranslate">run.bat</code>: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="114675453" data-permission-text="Title is private" data-url="https://github.com/elastic/elasticsearch/issues/14451" data-hovercard-type="pull_request" data-hovercard-url="/elastic/elasticsearch/pull/14451/hovercard" href="https://github.com/elastic/elasticsearch/pull/14451">#14451</a></li>
</ul>