Open oddpxl opened 8 months ago
Yeah I can confirm that fts query with a prefixed star doesn't work.
REPL example:
=> :create people { name: String }
status
--------
"OK"
=> ::fts create people:index_name {
extractor: name,
extract_filter: !is_null(name),
tokenizer: Simple,
filters:[Lowercase, Stemmer('english'), Stopwords('en')]
}
status
--------
"OK"
=> ?[name] <- [['Diwank']] :insert people {name}
status
--------
"OK"
=> ?[name] := ~people:index_name {name | query: 'wank', k: 10}
name
------
=> ?[name] := ~people:index_name {name | query: 'Diwank', k: 10}
name
----------
"Diwank"
=> ?[name] := ~people:index_name {name | query: '*wank', k: 10}
× --> 1:1
│ |
│ 1 | *wank
│ | ^---
│ |
│ = expected fts_expr
=> ?[name] := ~people:index_name {name | query: 'Di*', k: 10}
name
------
..or am I doing something wrong ?
Search result: Err( × --> 1:1 │ | │ 1 | *arlie │ | ^--- │ | │ = expected fts_expr
`