Open Source alternative to Algolia + Pinecone and an Easier-to-Use alternative to ElasticSearch ⚡ 🔍 ✨ Fast, typo tolerant, in-memory fuzzy Search Engine for building delightful search experiences
C++ algoliadatastoreelasticsearchenterprise-searchfacetingfull-text-searchfuzzy-searchgeosearchin-memoryinstantsearchmerchandisingpineconesearchsearch-enginesemantic-searchsimilarity-searchsite-searchsynonymstypo-tolerancevector-search
Fix build errors.
Kishore Nallanef1364a23e9c
diff --git a/CMakeLists.txt b/CMakeLists.txtindex c6990dd5..44027037 100644--- a/CMakeLists.txt+++ b/CMakeLists.txt@@ -8,10 +8,10 @@ if(NOT EXISTS ${CMAKE_SOURCE_DIR}/external/)file(MAKE_DIRECTORY ${CMAKE_SOURCE_DIR}/external)endif()-include(cmake/GoogleTest.cmake)include(cmake/For.cmake)include(cmake/H2O.cmake)include(cmake/RocksDB.cmake)+include(cmake/GoogleTest.cmake)include(cmake/TestResources.cmake)if (APPLE)@@ -26,6 +26,7 @@ include_directories(include)include_directories(${CMAKE_SOURCE_DIR}/external/${FOR_NAME})include_directories(${CMAKE_SOURCE_DIR}/external/${GTEST_NAME}/googletest/include)include_directories(${CMAKE_SOURCE_DIR}/external/${H2O_NAME}/include)+include_directories(${CMAKE_SOURCE_DIR}/external/${H2O_NAME}/build/libressl-build/include)include_directories(${CMAKE_SOURCE_DIR}/external/${ROCKSDB_NAME}/include)link_directories(${CMAKE_SOURCE_DIR}/external/${GTEST_NAME}/googletest/build)@@ -40,7 +41,7 @@ add_executable(search ${HEADER_FILES} ${SRC_FILES} src/main/main.cpp)add_executable(benchmark ${HEADER_FILES} ${SRC_FILES} src/main/benchmark.cpp)add_executable(typesense-server ${HEADER_FILES} ${SRC_FILES} src/main/server.cpp)-target_link_libraries(typesense_test for rocksdb gtest gtest_main)+target_link_libraries(typesense_test pthread for rocksdb gtest gtest_main)target_link_libraries(search for pthread rocksdb)target_link_libraries(benchmark for pthread rocksdb)target_link_libraries(typesense-server for curl h2o-evloop pthread rocksdb ssl crypto)\ No newline at end of filediff --git a/cmake/H2O.cmake b/cmake/H2O.cmakeindex 30731351..0010d646 100644--- a/cmake/H2O.cmake+++ b/cmake/H2O.cmake@@ -1,4 +1,4 @@-# Download and build gtest+# Download and build H2Oset(H2O_VERSION 2.0.4)set(H2O_NAME h2o-${H2O_VERSION})@@ -6,7 +6,7 @@ set(H2O_TAR_PATH ${CMAKE_SOURCE_DIR}/external/${H2O_NAME}.tar.gz)if(NOT EXISTS ${CMAKE_SOURCE_DIR}/external/${H2O_NAME})message(STATUS "Downloading and extracting ${H2O_NAME}...")- file(DOWNLOAD https://github.com/h2o/h2o/archive/v2.0.4.tar.gz ${H2O_TAR_PATH})+ file(DOWNLOAD https://github.com/h2o/h2o/archive/v${H2O_VERSION}.tar.gz ${H2O_TAR_PATH})execute_process(COMMAND ${CMAKE_COMMAND} -E tar xvzf ${H2O_TAR_PATH} WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/external/)endif()diff --git a/src/main/server.cpp b/src/main/server.cppindex 5f52d051..93590bec 100644--- a/src/main/server.cpp+++ b/src/main/server.cpp@@ -10,6 +10,7 @@#include <sys/stat.h>#include <fstream>#include <iostream>+#include <chrono>#include <vector>#include <string>#include <map>