Open SergNikitin opened 2 years ago
User enters a search query that is compiled into a dumb case insensitive regex
For this see method makePattern
in truthsayer/src/grid/SearchGrid.tsx
Renamed it a bit just to clarify a bit - the regexp is fine for now, just not enough. So we are ok if a new search includes regex (or not), the point is to improve it with the data we have for nodes today
An "archive" feature is related to this one as a way to surface "dirty" nodes in search results #23
At the time of this writing our search is implemented as follows (conceptually at least, since encryption isn't enabled yet):
smuggler
in batches usingTNodeSliceIterator
(see #105)Naive regex-based solutions are incompatible with more advanced search capabilities that we are aiming for (like lemmatization, search by image color etc.)
We need something more powerful and flexible. On server-side there are well-known behemoths like Elasticsearch, but we need something that's pure client-side and is built on top of
TNodeSliceIterator
, same as before. It would be great if there is something out there that can be plugged intotruthsayer
as an out of the box solution to kickstart our efforts. If there is nothing out there then we can write our own, but I suspect there should be some basic search building blocks out there as JS/TS libraries.Part of Thread-knowledge/smuggler#22