Fix some bugs in the search engine.
This commit is contained in:
parent
02c70d868d
commit
097a83e3ba
@ -12,7 +12,7 @@ class Text: QueryComponent() {
|
||||
when(component) {
|
||||
is StringTextComponent -> builder.then(component.value)
|
||||
is SingleWildcard -> builder.anyChar()
|
||||
is MultiWildcard -> builder.zeroOrMore()
|
||||
is MultiWildcard -> builder.anything()
|
||||
}
|
||||
}
|
||||
return builder
|
||||
@ -20,5 +20,7 @@ class Text: QueryComponent() {
|
||||
|
||||
fun rawTextOnly() = components
|
||||
.filter { it is StringTextComponent }
|
||||
.joinToString(separator = "")
|
||||
.joinToString(separator = "", transform = {
|
||||
(it as StringTextComponent).value
|
||||
})
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user