I would like to use Levenshtein and Im looking for some examples. I already read the documentation, but I dont know how to implement it. I tried to build my own Analyzer, but it crashed everytime I used it.
Here is the documentation I follwed: https://crate.io/docs/reference/sql/fulltext.html
Example table:
CREATE TABLE IF NOT EXISTS "test"."accounts" (
"customer_name" STRING INDEX USING FULLTEXT WITH (
analyzer = 'standard'
),
"customer_no" STRING,
PRIMARY KEY ("customer_no")
)
INSERT INTO "test"."accounts"
(customer_name, customer_no)
VALUES('Walmart','C00001');
My goal will be to search for Wal-mart and return Walmart.