Skip to content

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

Allow TYPESENSE_VERSION to be passed to build.

Kishore Nallanf37f8d2cd822
diff --git a/BUILD b/BUILD
index bea2ba44..6ff72875 100644
--- a/BUILD
+++ b/BUILD
@@ -30,7 +30,6 @@ cc_library(
name = "common_deps",
defines = [
"NDEBUG",
- "TYPESENSE_VERSION=\\\"nightly\\\"",
],
linkopts = select({
"@platforms//os:macos": ["-framework Foundation -framework SystemConfiguration"],
@@ -70,6 +69,9 @@ cc_binary(
"src/main/typesense_server.cpp",
":src_files",
],
+ local_defines = [
+ "TYPESENSE_VERSION=\\\"$(TYPESENSE_VERSION)\\\""
+ ],
copts = COPTS,
deps = [":common_deps"],
)