Search the docs
/
ALTER ANALYZER
The ALTER ANALYZER statement can be used to modify an existing defined analyzer.
SurrealQL Syntax
ALTER ANALYZER [ IF EXISTS ] @name [ FUNCTION fn::@function | DROP FUNCTION ] [ TOKENIZERS @tokenizer, ... | DROP TOKENIZERS ] [ FILTERS @filter, ... | DROP FILTERS ] [ COMMENT @string | DROP COMMENT ]
-- Define an analyzerDEFINE ANALYZER example_edgengram TOKENIZERS class FILTERS edgengram(1,3);-- Shorten the edgengramALTER ANALYZER example_edgengram FILTERS edgengram(1,2);-- Check the outputsearch::analyze("example_edgengram", "Apple banana!!");
Output
[ 'A', 'Ap', 'b', 'ba', '!', '!!']
Was this page helpful?
Previous
ACCESS
Next
API