Examples of onOrAfter()


Examples of org.elasticsearch.Version.onOrAfter()

            assertThat(indicesOptions2.ignoreUnavailable(), equalTo(indicesOptions.ignoreUnavailable()));
            assertThat(indicesOptions2.allowNoIndices(), equalTo(indicesOptions.allowNoIndices()));
            assertThat(indicesOptions2.expandWildcardsOpen(), equalTo(indicesOptions.expandWildcardsOpen()));
            assertThat(indicesOptions2.expandWildcardsClosed(), equalTo(indicesOptions.expandWildcardsClosed()));

            if (outputVersion.onOrAfter(Version.V_1_2_2)) {
                assertThat(indicesOptions2.forbidClosedIndices(), equalTo(indicesOptions.forbidClosedIndices()));
                assertThat(indicesOptions2.allowAliasesToMultipleIndices(), equalTo(indicesOptions.allowAliasesToMultipleIndices()));
            } else if (outputVersion.onOrAfter(Version.V_1_2_0)) {
                assertThat(indicesOptions2.allowAliasesToMultipleIndices(), equalTo(indicesOptions.allowAliasesToMultipleIndices()));
                assertThat(indicesOptions2.forbidClosedIndices(), equalTo(false));
View Full Code Here

Examples of org.elasticsearch.Version.onOrAfter()

            assertThat(indicesOptions2.expandWildcardsClosed(), equalTo(indicesOptions.expandWildcardsClosed()));

            if (outputVersion.onOrAfter(Version.V_1_2_2)) {
                assertThat(indicesOptions2.forbidClosedIndices(), equalTo(indicesOptions.forbidClosedIndices()));
                assertThat(indicesOptions2.allowAliasesToMultipleIndices(), equalTo(indicesOptions.allowAliasesToMultipleIndices()));
            } else if (outputVersion.onOrAfter(Version.V_1_2_0)) {
                assertThat(indicesOptions2.allowAliasesToMultipleIndices(), equalTo(indicesOptions.allowAliasesToMultipleIndices()));
                assertThat(indicesOptions2.forbidClosedIndices(), equalTo(false));
            } else {
                //default value (true) if the node version doesn't support the allowAliasesToMultipleIndices flag
                assertThat(indicesOptions2.allowAliasesToMultipleIndices(), equalTo(true));
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.