Analysis : Allow string explain param in JSON

Fix typo
Remove unused import

Closes #16925
This commit is contained in:
Jun Ohtani 2016-03-07 15:13:59 +09:00
parent 071d578953
commit 48cb81e30b
2 changed files with 1 additions and 8 deletions

View File

@ -19,15 +19,8 @@
package org.elasticsearch.indices.analyze;
import org.elasticsearch.action.admin.indices.alias.Alias;
import org.elasticsearch.action.admin.indices.analyze.AnalyzeRequest;
import org.elasticsearch.action.admin.indices.analyze.AnalyzeRequestBuilder;
import org.elasticsearch.action.admin.indices.analyze.AnalyzeResponse;
import org.elasticsearch.common.ParseFieldMatcher;
import org.elasticsearch.common.bytes.BytesArray;
import org.elasticsearch.common.bytes.BytesReference;
import org.elasticsearch.common.settings.Settings;
import org.elasticsearch.common.xcontent.XContentFactory;
import org.elasticsearch.rest.action.admin.indices.analyze.RestAnalyzeAction;
import org.elasticsearch.test.ESIntegTestCase;
import org.hamcrest.core.IsNull;

View File

@ -30,7 +30,7 @@ import static org.hamcrest.Matchers.*;
public class RestAnalyzeActionTests extends ESTestCase {
public void testParseXContentForAnalyzeReuqest() throws Exception {
public void testParseXContentForAnalyzeRequest() throws Exception {
BytesReference content = XContentFactory.jsonBuilder()
.startObject()
.field("text", "THIS IS A TEST")