Skip to content

Commit 4273520

Browse files
Code cleanup
1 parent a12a892 commit 4273520

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<modelVersion>4.0.0</modelVersion>
44
<groupId>io.github.delirius325</groupId>
55
<artifactId>jmeter.backendlistener.elasticsearch</artifactId>
6-
<version>2.2.1</version>
6+
<version>2.2.2</version>
77
<packaging>jar</packaging>
88
<name>jmeter.backendlistener.elasticsearch</name>
99
<url>https://github.com/delirius325/jmeter-elasticsearch-backend-listener</url>

src/main/java/io/github/delirius325/jmeter/backendlistener/elasticsearch/ElasticsearchBackend.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ private void sendRequest(List<String> bulkList) throws IOException {
159159

160160
HttpEntity entity = new NStringEntity(bulkRequestBody.toString(), ContentType.APPLICATION_JSON);
161161
try {
162-
Response response = client.performRequest("POST", "/your_index/your_type/_bulk", Collections.emptyMap(), entity);
162+
Response response = client.performRequest("POST", "/"+ this.index +"/SampleResult/_bulk", Collections.emptyMap(), entity);
163163
if(response.getStatusLine().getStatusCode() != HttpStatus.SC_OK) {
164164
if(logger.isErrorEnabled()) {
165165
logger.error("ElasticSearch Backend Listener failed to write results for index {}", this.index);

0 commit comments

Comments
 (0)