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>
This commit is contained in:
William Casarin
2024-01-03 18:09:06 -08:00
committed by Daniel D’Aquino
parent 0df18ae1a4
commit f03d8a5ac9

View File

@@ -2552,16 +2552,16 @@ retry:
return 0; return 0;
} }
/*
if (last_result) { if (last_result) {
if (result->key.word_index < last_result->key.word_index) { if (result->key.word_index < last_result->key.word_index) {
/*
fprintf(stderr, "skipping '%.*s' because it is before last result '%.*s'\n", fprintf(stderr, "skipping '%.*s' because it is before last result '%.*s'\n",
result->key.str_len, result->key.str, result->key.str_len, result->key.str,
last_result->key.str_len, last_result->key.str); last_result->key.str_len, last_result->key.str);
*/
return 0; return 0;
} }
} }
*/
return 1; return 1;
} }