Catalog search fails on a search that used to work - empty field
ConversazioniBug Collectors
Iscriviti a LibraryThing per pubblicare un messaggio.
1jjmcgaffey
I have regularly searched my catalog for Reviews:"" in order to find the books I haven't yet put a review on (sorted by reading date, so the top ones are ones I've read or at least started). I just tried it again - it's been a few months - and it failed completely. This is the error I got:
Fatal error: Uncaught exception 'Elasticsearch\Common\Exceptions\BadRequest400Exception' with message '{"error":{"root_cause":{"type":"parsing_exception","reason":"no query registered for filtered","line":1,"col":97},"type":"parsing_exception","reason":"no query registered for filtered","line":1,"col":97},"status":400}' in /var/www/html/elasticsearch-php-5/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Connections/Connection.php:630 Stack trace: #0 /var/www/html/elasticsearch-php-5/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Connections/Connection.php(293): Elasticsearch\Connections\Connection->process4xxError(Array, Array, Array) #1 /var/www/html/elasticsearch-php-5/vendor/react/promise/src/FulfilledPromise.php(28): Elasticsearch\Connections\Connection->Elasticsearch\Connections\{closure}(Array) #2 /var/www/html/elasticsearch-php-5/vendor/guzzlehttp/ringphp/src/Future/CompletedFutureValue.php(55): React\Promise\FulfilledPromise->then(Object(Closure), NULL, NULL) #3 /var/www/html/elasticsearch-php in /var/www/html/elasticsearch-php-5/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Connections/Connection.php on line 630
I also tried selecting Reviews in the dropdown and searching for "" - same error - and selecting Reviews and searching without entering anything, which gave me a search for Search and your and library (the default text).
a) is this actually a bug in the search module? Or just something this module can't do?
And b), especially in the latter case - is there any search parameters I can use to do what I want it to do, find books with blank/empty/null reviews? Some form of NOT, perhaps? But NOT what?
Fatal error: Uncaught exception 'Elasticsearch\Common\Exceptions\BadRequest400Exception' with message '{"error":{"root_cause":{"type":"parsing_exception","reason":"no query registered for filtered","line":1,"col":97},"type":"parsing_exception","reason":"no query registered for filtered","line":1,"col":97},"status":400}' in /var/www/html/elasticsearch-php-5/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Connections/Connection.php:630 Stack trace: #0 /var/www/html/elasticsearch-php-5/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Connections/Connection.php(293): Elasticsearch\Connections\Connection->process4xxError(Array, Array, Array) #1 /var/www/html/elasticsearch-php-5/vendor/react/promise/src/FulfilledPromise.php(28): Elasticsearch\Connections\Connection->Elasticsearch\Connections\{closure}(Array) #2 /var/www/html/elasticsearch-php-5/vendor/guzzlehttp/ringphp/src/Future/CompletedFutureValue.php(55): React\Promise\FulfilledPromise->then(Object(Closure), NULL, NULL) #3 /var/www/html/elasticsearch-php in /var/www/html/elasticsearch-php-5/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Connections/Connection.php on line 630
I also tried selecting Reviews in the dropdown and searching for "" - same error - and selecting Reviews and searching without entering anything, which gave me a search for Search and your and library (the default text).
a) is this actually a bug in the search module? Or just something this module can't do?
And b), especially in the latter case - is there any search parameters I can use to do what I want it to do, find books with blank/empty/null reviews? Some form of NOT, perhaps? But NOT what?
2AnnieMod
It used to work before so I think it is a bug.
Anyway as a workaround - I use review:-and - all my reviews will have at least one "and" somewhere in them so that pulls my proper list and even if one or two reviews sneak in (because I did not use "and"), I can live with it. You can pick a better word based on your own reviews of course.
Anyway as a workaround - I use review:-and - all my reviews will have at least one "and" somewhere in them so that pulls my proper list and even if one or two reviews sneak in (because I did not use "and"), I can live with it. You can pick a better word based on your own reviews of course.
3bnielsen
A search for:
-Review:*
or
review: NOT *
works for me. (I mark reviews I've only partially filled out with "???" and that's a pain to search for, so I use the TSV export for that.)
-Review:*
or
review: NOT *
works for me. (I mark reviews I've only partially filled out with "???" and that's a pain to search for, so I use the TSV export for that.)
4kristilabrie
Yeah, this has been around awhile, sorry for the trouble. I've reminded the developers about this one, thanks.
5jjmcgaffey
Thank you for the workarounds, and the reminder to the developers! That should get me by until they get it figured out.