Skip to content
This repository was archived by the owner on Jul 17, 2023. It is now read-only.

Commit

Permalink
Merge pull request #8 from 21re/ES-mapping-update
Browse files Browse the repository at this point in the history
mapping update
  • Loading branch information
Ihor authored Jun 16, 2021
2 parents ea0b354 + f53fb28 commit 75e12a7
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "microtools"
version = "0.3.1"
version = "0.3.2"
authors = ["Bodo Junglas <[email protected]>", "Ihor Mordashev <[email protected]"]
edition = "2018"

Expand Down
2 changes: 1 addition & 1 deletion src/elasticsearch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ impl ElasticsearchUrlBuilder {
}

pub fn mapping(&self) -> String {
format!("{}/_mapping/_doc", self.index())
format!("{}/_mapping", self.index())
}

pub fn search(&self) -> String {
Expand Down
2 changes: 1 addition & 1 deletion src/elasticsearch_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ fn test_build_url_mget() {
fn test_build_url_mapping() {
let url_builder = ElasticsearchUrlBuilder::new("http://server".to_string(), "INDEX_NAME".to_string());

assert_that(&url_builder.mapping()).is_equal_to("http://server/INDEX_NAME/_mapping/_doc".to_string());
assert_that(&url_builder.mapping()).is_equal_to("http://server/INDEX_NAME/_mapping".to_string());
}

#[test]
Expand Down

0 comments on commit 75e12a7

Please sign in to comment.