commit f03d8a5ac9115c38167f9ae6674eef6ad731edc1
parent 0df18ae1a46f2a15c5de272f03a5a54a06941ffb
Author: William Casarin <jb55@jb55.com>
Date: Wed, 3 Jan 2024 18:09:06 -0800
nostrdb/search: don't enforce sequential tokens
This makes it a bit more flexible, but maybe we can add quoting in the
future that re-enables this. Or maybe a search option
Signed-off-by: William Casarin <jb55@jb55.com>
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/nostrdb/src/nostrdb.c b/nostrdb/src/nostrdb.c
@@ -2552,16 +2552,16 @@ retry:
return 0;
}
+ /*
if (last_result) {
if (result->key.word_index < last_result->key.word_index) {
- /*
fprintf(stderr, "skipping '%.*s' because it is before last result '%.*s'\n",
result->key.str_len, result->key.str,
last_result->key.str_len, last_result->key.str);
- */
return 0;
}
}
+ */
return 1;
}