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:
committed by
Daniel D’Aquino
parent
0df18ae1a4
commit
f03d8a5ac9
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user