File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
server/src/main/java/org/elasticsearch/rest/action/search Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change 1616import org .elasticsearch .action .support .IndicesOptions ;
1717import org .elasticsearch .client .internal .node .NodeClient ;
1818import org .elasticsearch .common .Strings ;
19+ import org .elasticsearch .common .logging .HeaderWarning ;
1920import org .elasticsearch .common .settings .Settings ;
2021import org .elasticsearch .core .Booleans ;
2122import org .elasticsearch .core .Nullable ;
@@ -287,6 +288,9 @@ public static void parseSearchRequest(
287288 * effect, we can safely drop it.
288289 */
289290 if (request .hasParam ("ccs_minimize_roundtrips" )) {
291+ String warning = "ccs_minimize_roundtrips always defaults to true in Cross Project Search context."
292+ + " Setting it explicitly has no effect irrespective of the value specified and is ignored." ;
293+ HeaderWarning .addWarning (warning );
290294 request .param ("ccs_minimize_roundtrips" );
291295 }
292296 } else {
You can’t perform that action at this time.
0 commit comments