Problem: activation elasticsearch

Please report bugs here!

Moderator: Thorsten

circa138
Posts: 27
Joined: Wed Mar 15, 2017 10:27 am

Re: Problem: activation elasticsearch

Post by circa138 » Mon Mar 27, 2017 3:01 pm

Hi Thorsten,

thanks for the fast reply. Thought its okay when i leave the fields blank but nevermind. :)

Index created successfully, but im getting blank pages now after typing in a searchword.
The system information meu is in a never ending loading proccess aswell.
Screenshots added.
You do not have the required permissions to view the files attached to this post.

Thorsten
Posts: 14396
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Problem: activation elasticsearch

Post by Thorsten » Mon Mar 27, 2017 3:03 pm

Hi,

great, please enable the debug mode in inc/Bootstrap.php to see the errors.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist

circa138
Posts: 27
Joined: Wed Mar 15, 2017 10:27 am

Re: Problem: activation elasticsearch

Post by circa138 » Mon Mar 27, 2017 3:15 pm

blank page after search :
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":22}],"type":"parsing_exception","reason":"no [query] registered for [filtered]","line":1,"col":22},"status":400}' in C:\xampp\htdocs\faq\inc\libs\elasticsearch\src\Elasticsearch\Connections\Connection.php:655 Stack trace: #0 C:\xampp\htdocs\faq\inc\libs\elasticsearch\src\Elasticsearch\Connections\Connection.php(632): Elasticsearch\Connections\Connection->tryDeserializeError(Array, 'Elasticsearch\\C...') #1 C:\xampp\htdocs\faq\inc\libs\elasticsearch\src\Elasticsearch\Connections\Connection.php(553): Elasticsearch\Connections\Connection->tryDeserialize400Error(Array) #2 C:\xampp\htdocs\faq\inc\libs\elasticsearch\src\Elasticsearch\Connections\Connection.php(262): Elasticsearch\Connections\Connection->process4xxError(Array, Array, Array) #3 C:\xampp\htdocs\faq\inc\libs\react\promise\src\FulfilledPromise.php(25): in C:\xampp\htdocs\faq\inc\libs\elasticsearch\src\Elasticsearch\Connections\Connection.php on line 657
System Information
Fatal error: Uncaught exception 'Elasticsearch\Common\Exceptions\BadRequest400Exception' with message '{"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"request [/_cat/master] contains unrecognized parameter: [0]"}],"type":"illegal_argument_exception","reason":"request [/_cat/master] contains unrecognized parameter: [0]"},"status":400}' in C:\xampp\htdocs\faq\inc\libs\elasticsearch\src\Elasticsearch\Connections\Connection.php:655 Stack trace: #0 C:\xampp\htdocs\faq\inc\libs\elasticsearch\src\Elasticsearch\Connections\Connection.php(632): Elasticsearch\Connections\Connection->tryDeserializeError(Array, 'Elasticsearch\\C...') #1 C:\xampp\htdocs\faq\inc\libs\elasticsearch\src\Elasticsearch\Connections\Connection.php(553): Elasticsearch\Connections\Connection->tryDeserialize400Error(Array) #2 C:\xampp\htdocs\faq\inc\libs\elasticsearch\src\Elasticsearch\Connections\Connection.php(262): Elasticsearch\Connections\Connection->process4xxError(Array, Array, Array) #3 C:\xampp\htdocs\faq\inc\libs\react\promise\s in C:\xampp\htdocs\faq\inc\libs\elasticsearch\src\Elasticsearch\Connections\Connection.php on line 657

Thorsten
Posts: 14396
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Problem: activation elasticsearch

Post by Thorsten » Mon Mar 27, 2017 3:17 pm

Hi,

do you use Elasticsearch 5.x?

If yes, please downgrade to the latest 2.x version

Thanks!

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist

circa138
Posts: 27
Joined: Wed Mar 15, 2017 10:27 am

Re: Problem: activation elasticsearch

Post by circa138 » Mon Mar 27, 2017 3:33 pm

Hi Thorsten,

im using elasticsearch 2.4.4.

Thorsten
Posts: 14396
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Problem: activation elasticsearch

Post by Thorsten » Mon Mar 27, 2017 3:40 pm

Hi,

okay, you can try to apply this patch: https://github.com/thorsten/phpMyFAQ/co ... db7ee4485e

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist

circa138
Posts: 27
Joined: Wed Mar 15, 2017 10:27 am

Re: Problem: activation elasticsearch

Post by circa138 » Tue Mar 28, 2017 7:45 am

Thank you very much Thorsten,it works well now, i really appreciate this.

Maybe theres a Little bug remaining:

When a FAQ contains a specific number (e.g. "300359") i can find the faq with searching for "300" or "3003" or "30035" but when im looking for "300359" im getting 0 search results with the apology: "no categories have been found".

Thorsten
Posts: 14396
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Problem: activation elasticsearch

Post by Thorsten » Tue Mar 28, 2017 10:28 am

Hi,

oh, that's interesting. Does this happen with search using Elasticsearch?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist

circa138
Posts: 27
Joined: Wed Mar 15, 2017 10:27 am

Re: Problem: activation elasticsearch

Post by circa138 » Tue Mar 28, 2017 3:40 pm

Hi Thorsten,

yes only when i search with ES.
The standard search is working fine.

Thorsten
Posts: 14396
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Problem: activation elasticsearch

Post by Thorsten » Tue Mar 28, 2017 4:04 pm

Hi,

I will try to reproduce this.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest