milvus/internal/core/thirdparty/tantivy/ffi_demo.cpp
Jiquan Long 0c5d8660aa
feat: support inverted index for array (#33452)
issue: https://github.com/milvus-io/milvus/issues/27704

---------

Signed-off-by: longjiquan <jiquan.long@zilliz.com>
2024-05-31 09:47:47 +08:00

18 lines
346 B
C++

#include <string>
#include <vector>
#include "tantivy-binding.h"
int
main(int argc, char* argv[]) {
std::vector<std::string> data{"data1", "data2", "data3"};
std::vector<const char*> datas{};
for (auto& s : data) {
datas.push_back(s.c_str());
}
print_vector_of_strings(datas.data(), datas.size());
return 0;
}