Skip to content

Commit

Permalink
fix bug (#5214)
Browse files Browse the repository at this point in the history
* fix bug

* fix bug

Co-authored-by: Doodle <[email protected]>
  • Loading branch information
cangfengzhs and critical27 authored Jan 6, 2023
1 parent e30bdf0 commit 5132125
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions src/kvstore/listener/elasticsearch/ESListener.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,9 @@ void ESListener::pickTagAndEdgeData(BatchLogType type,
}
auto field = index.second.get_fields().front();
auto v = reader->getValueByName(field);
if (v.type() == Value::Type::NULLVALUE) {
continue;
}
if (v.type() != Value::Type::STRING) {
LOG(ERROR) << "Can't create fulltext index on type " << v.type();
}
Expand Down Expand Up @@ -125,6 +128,9 @@ void ESListener::pickTagAndEdgeData(BatchLogType type,
}
auto field = index.second.get_fields().front();
auto v = reader->getValueByName(field);
if (v.type() == Value::Type::NULLVALUE) {
continue;
}
if (v.type() != Value::Type::STRING) {
LOG(ERROR) << "Can't create fulltext index on type " << v.type();
}
Expand Down
2 changes: 1 addition & 1 deletion tests/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ BUILD_DIR ?= $(CURR_DIR)/../build
DEBUG ?= true
J ?= 10
ENABLE_FT_INDEX ?= false
ES_ADDRESS ?= "locahost:9200"
ES_ADDRESS ?= 127.0.0.1:9200
ENABLE_SSL ?= false
ENABLE_GRAPH_SSL ?= false
ENABLE_META_SSL ?= false
Expand Down

0 comments on commit 5132125

Please sign in to comment.