Replies: 1 comment
-
This is partly built by parsing the search string into a
Implementation details for data source:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Currently a
DatavView
only supports a searchstring
. To make searching more powerfull we should introduce aSearch
value object with a::from_string()
constructor.Instead of relying solely on the search string, the
DataSource
can parse the string into multiple parts.For example a string like
some +value -other "Exactly this"
would be parsed to:some
andExactly this
value
other
We might also add operators for STARTS WiTH and ENDS WITH.
The data sources are still required to implement the search logic, but the value object should allow this parsing to happen.
And of course add a hook to disable this behaviour. And the value object should be Stringable (
__toString()
).Beta Was this translation helpful? Give feedback.
All reactions