chore: and more cleanups
This commit is contained in:
@@ -7,6 +7,22 @@
|
||||
use "./post.allium" as post
|
||||
use "./media.allium" as media
|
||||
|
||||
surface SearchControlSurface {
|
||||
facing _: SearchOperator
|
||||
|
||||
provides:
|
||||
SearchPostsRequested(query, filters)
|
||||
SearchMediaRequested(query)
|
||||
}
|
||||
|
||||
surface SearchIndexRuntimeSurface {
|
||||
facing _: SearchRuntime
|
||||
|
||||
provides:
|
||||
SearchIndexUpdated(post)
|
||||
SearchIndexUpdated(media)
|
||||
}
|
||||
|
||||
value StemmerLanguage {
|
||||
-- Snowball stemmers for 24 languages
|
||||
-- ISO 639-1 to Snowball mapping
|
||||
@@ -14,6 +30,13 @@ value StemmerLanguage {
|
||||
code: String
|
||||
}
|
||||
|
||||
surface StemmerLanguageSurface {
|
||||
context language: StemmerLanguage
|
||||
|
||||
exposes:
|
||||
language.code
|
||||
}
|
||||
|
||||
entity PostSearchIndex {
|
||||
-- SQLite FTS5 virtual table
|
||||
-- Indexed fields: title, excerpt, content, tags, categories
|
||||
|
||||
Reference in New Issue
Block a user