From f03d8a5ac9115c38167f9ae6674eef6ad731edc1 Mon Sep 17 00:00:00 2001 From: William Casarin Date: Wed, 3 Jan 2024 18:09:06 -0800 Subject: [PATCH] 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 --- nostrdb/src/nostrdb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nostrdb/src/nostrdb.c b/nostrdb/src/nostrdb.c index 9a393d39..b263485d 100644 --- 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; }