Files
scylladb/index/CMakeLists.txt
Dawid Pawlik fcd15b5cd4 index: add fulltext_index custom index implementation
Introduce `fulltext_index`, a new `custom_index` subclass
for full-text search (FTS).

The index validates that the target column is a text type
(text, varchar, or ascii) and supports two WITH OPTIONS keys:
- 'analyzer': one of standard, english, german, french, spanish,
  italian, portuguese, russian, chinese, japanese, korean, simple,
  whitespace
- 'positions': boolean controlling whether term positions are stored

`view_should_exist()` returns false — no backing materialized view is
created, matching the CDC-backed pattern used by `vector_index`.

Fixes: SCYLLADB-1517
2026-05-08 11:30:08 +02:00

26 lines
580 B
CMake

find_package(cryptopp REQUIRED)
add_library(index STATIC)
target_sources(index
PRIVATE
secondary_index.cc
secondary_index_manager.cc
fulltext_index.cc
index_option_utils.cc
vector_index.cc)
target_include_directories(index
PUBLIC
${CMAKE_SOURCE_DIR})
target_link_libraries(index
PUBLIC
Seastar::seastar
xxHash::xxhash
PRIVATE
cql3)
if (Scylla_USE_PRECOMPILED_HEADER_USE)
target_precompile_headers(index REUSE_FROM scylla-precompiled-header)
endif()
check_headers(check-headers index
GLOB_RECURSE ${CMAKE_CURRENT_SOURCE_DIR}/*.hh)