nfsantos commented on code in PR #709: URL: https://github.com/apache/jackrabbit-oak/pull/709#discussion_r978722673
########## oak-search-elastic/src/test/java/org/apache/jackrabbit/oak/plugins/index/elastic/index/ElasticIndexHelperTest.java: ########## @@ -16,26 +16,29 @@ */ package org.apache.jackrabbit.oak.plugins.index.elastic.index; -import com.fasterxml.jackson.databind.ObjectMapper; +import co.elastic.clients.elasticsearch._types.analysis.TokenFilter; +import co.elastic.clients.elasticsearch._types.analysis.TokenFilterDefinition; +import co.elastic.clients.elasticsearch._types.analysis.WordDelimiterGraphTokenFilter; +import co.elastic.clients.elasticsearch._types.mapping.Property; +import co.elastic.clients.elasticsearch._types.mapping.TextProperty; +import co.elastic.clients.elasticsearch._types.mapping.TypeMapping; +import co.elastic.clients.elasticsearch.indices.CreateIndexRequest; +import co.elastic.clients.elasticsearch.indices.IndexSettings; +import co.elastic.clients.elasticsearch.indices.IndexSettingsAnalysis; import org.apache.jackrabbit.oak.api.Tree; import org.apache.jackrabbit.oak.plugins.index.elastic.ElasticIndexDefinition; import org.apache.jackrabbit.oak.plugins.index.elastic.util.ElasticIndexDefinitionBuilder; import org.apache.jackrabbit.oak.plugins.index.search.util.IndexDefinitionBuilder; import org.apache.jackrabbit.oak.spi.state.NodeState; -import org.elasticsearch.client.indices.CreateIndexRequest; import org.junit.Test; -import java.io.IOException; -import java.util.Map; - -import static org.hamcrest.CoreMatchers.is; -import static org.hamcrest.CoreMatchers.nullValue; +import static org.hamcrest.CoreMatchers.*; import static org.hamcrest.MatcherAssert.assertThat; public class ElasticIndexHelperTest { Review Comment: In here 8b0d18398f1345269d1eb7ec1d638ff6fe5cb40a I added a test to validate that the ES request is being created correctly with the settings that are configurable. I'm not testing the settings that are hardcoded in the request creation, like shingles, as they cannot be configured. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@jackrabbit.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org