Skip to content

Commit

Permalink
fix: remove test for term vectors
Browse files Browse the repository at this point in the history
  • Loading branch information
salvatore-campagna committed Apr 22, 2024
1 parent 80a7426 commit ea20632
Showing 1 changed file with 0 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
import org.elasticsearch.test.MockKeywordPlugin;
import org.elasticsearch.xcontent.ToXContent;
import org.elasticsearch.xcontent.XContentBuilder;
import org.elasticsearch.xcontent.XContentType;

import java.io.IOException;
import java.util.ArrayList;
Expand All @@ -45,7 +44,6 @@
import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.assertAcked;
import static org.elasticsearch.xcontent.XContentFactory.jsonBuilder;
import static org.hamcrest.Matchers.equalTo;
import static org.hamcrest.Matchers.greaterThan;
import static org.hamcrest.Matchers.notNullValue;
import static org.hamcrest.Matchers.nullValue;

Expand Down Expand Up @@ -1040,20 +1038,6 @@ public void testArtificialDocWithPreference() throws InterruptedException, IOExc
assertEquals("expected to find term statistics in exactly one shard!", 2, sumDocFreq);
}

@AwaitsFix(bugUrl = "https://github.com/elastic/elasticsearch/issues/105649")
public void testTermVectorsWithIgnoredField() throws IOException, InterruptedException {
// setup indices
assertAcked(prepareCreate("index").setMapping("field", "type=long,ignore_malformed=true"));
ensureGreen();

// add a doc with a bad long field
indexRandom(true, prepareIndex("index").setId("1").setSource("{\"field\":\"foo\"}", XContentType.JSON));

// do a tv request for all fields, _ignored should be returned
TermVectorsResponse resp = client().prepareTermVectors("index", "1").setSelectedFields("*").get();
assertThat(resp.getFields().terms("_ignored").size(), greaterThan(0L));
}

public void testWithKeywordAndNormalizer() throws IOException, ExecutionException, InterruptedException {
// setup indices
String[] indexNames = new String[] { "with_tv", "without_tv" };
Expand Down

0 comments on commit ea20632

Please sign in to comment.