Add Redis Search API surface (FT.CREATE, FT.DROPINDEX, FT.SEARCH)#3332
Draft
viktoriya-kutsarova wants to merge 1 commit intospring-projects:mainfrom
Draft
Add Redis Search API surface (FT.CREATE, FT.DROPINDEX, FT.SEARCH)#3332viktoriya-kutsarova wants to merge 1 commit intospring-projects:mainfrom
viktoriya-kutsarova wants to merge 1 commit intospring-projects:mainfrom
Conversation
Signed-off-by: viktoriya.kutsarova <viktoriya.kutsarova@redis.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add Redis Search API surface for FT.CREATE, FT.DROPINDEX, and FT.SEARCH
This PR introduces the public API types for Redis Search commands without the driver-specific implementations.
API Interface
RedisSearchCommandsdefines the core operations:createIndex(name, schema)/createIndex(name, schema, definition)- create an index with optional configurationdropIndex(name)/dropIndex(name, options)- drop an index with optional document deletionsearch(index, query)/search(index, query, options)- execute a search queryIndex Definition
IndexDefinition- index-level options (data type, prefixes, language, stopwords, etc.)IndexDataType- HASH or JSONLanguage- supported stemming languagesDropIndexOptions- controls whether to delete documents on dropSchema & Field Types
Schema- container for field definitionsSchemaField- abstract base with factory methods (text(),tag(),numeric(),geo())TextField- full-text with stemming, phonetics, weightTagField- exact-match with separator and case sensitivityNumericField/GeoField- range queries and sortingSearch
SearchQuery- query string wrapperSearchOptions- LIMIT, SORTBY, RETURN, WITHSCORES, VERBATIM, etc.SearchResult/SearchHit/SearchDocument- result types