commit 5367d14d7e6566b684f3f0d3fa71cdc00ea50dff
parent 115536853cd00b5bc0e6124e6add32f59271ce3b
Author: William Casarin <jb55@jb55.com>
Date: Wed, 3 Jan 2024 18:09:06 -0800
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
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/nostrdb.c b/src/nostrdb.c
@@ -2553,16 +2553,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;
}