Skip to content

Commit 8880328

Browse files
committed
MilvusClientV2 for clean/expandable interfaces
Signed-off-by: yhmo <[email protected]>
1 parent fe2a0fb commit 8880328

File tree

224 files changed

+15200
-340
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

224 files changed

+15200
-340
lines changed

examples/src/run_analyzer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
namespace {
2525
void
2626
printAnalyzerResults(const milvus::AnalyzerResults& results) {
27-
for (const auto& result : results.Results()) {
27+
for (const auto& result : results) {
2828
std::cout << "\t------------------------------" << std::endl;
2929
for (const auto& token : result.Tokens()) {
3030
std::cout << "\t{token: " << token.token_ << ", start: " << token.start_offset_

src/CMakeLists.txt

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,14 @@
1414
# See the License for the specific language governing permissions and
1515
# limitations under the License.
1616

17-
aux_source_directory(${CMAKE_CURRENT_SOURCE_DIR}/impl impl_files)
18-
aux_source_directory(${CMAKE_CURRENT_SOURCE_DIR}/impl/types impl_types_files)
19-
aux_source_directory(${CMAKE_CURRENT_SOURCE_DIR}/impl/utils impl_utils_files)
17+
set(IMPL_DIR "${CMAKE_CURRENT_SOURCE_DIR}/impl")
18+
file(GLOB_RECURSE impl_files
19+
"${IMPL_DIR}/*.cpp"
20+
"${IMPL_DIR}/*.cxx"
21+
"${IMPL_DIR}/*.cc"
22+
)
2023

21-
add_library(milvus_sdk ${impl_files} ${impl_types_files} ${impl_utils_files})
24+
add_library(milvus_sdk ${impl_files})
2225

2326
# add proto gens
2427
add_milvus_protos(milvus_sdk)

0 commit comments

Comments
 (0)