-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fulltextsearch test failing on nextcloud 15 #477
Comments
Same issue here, what did you do to resolve it? |
i have this issue too. Here the Log result from FTS `root@dasnetzundich /var/log/elasticsearch # sudo -uwww-data php /var/www/nextcloud/occ fulltextsearch:search lars ratingen In Connection.php line 632: {"error":{"root_cause":[{"type":"x_content_parse_exception","reason":"[1:63] [bool] failed to parse field [should]"}],"type":"x_content_parse_exception","reason":"[1:63] [bool] failed to parse field [must]" and the logs from Nextcloud https://paste.dasnetzundich.de/view/bff9f8f8#L18 |
Same problem here, this issue needs to be reopened |
I get the same error - please reopen. |
Can’t actually remember. curl -XGET 'localhost:9200/?pretty' and check that fulltextsearch config in nextcloud correctly link to the elastisearch servlet address and index name. |
There is an hotfix, when you have installed elasticsearch 7.7.0 and later nextcloud/fulltextsearch_elasticsearch#107 |
Thanks for your suggestion! I tried it an now i get this: Searching basic keywords:
Unexpected SearchResult: {"provider":{"id":"test_provider","name":"Test Pro When I do a "curl -XGET 'localhost:9200/?pretty'" i get this: { |
What happens when you start the Fulltextsearch Scan? |
If it works, make a review please. Without this review the update can’t release. Thanks |
Hello,
But I've asked on the fulltextsearch_elasticsearch repository: Issue here |
Hi There, I got the same error as @thomaslc66 after applying nextcloud/fulltextsearch_elasticsearch#107, the first round of test seems ok, but: .Testing your current setup:
Unexpected SearchResult: {"provider":{"id":"test_provider","name":"Test Provider"},"platform":{"id":"elastic_search","name":"Elasticsearch"},"documents":[],"info":[],"meta":{"timedOut":false,"time":2,"count":0,"total":0,"maxScore":0}} fulltextsearch:test [--output [OUTPUT]] [-j|--json] [-d|--platform_delay PLATFORM_DELAY] When I do curl -XGET http://localhost:9200/?pretty { When I do curl -XGET http://localhost:9200/nextcloud/_search?q=Basic, I got the following results (shortened... but it seems elasticsearch works perfectly in the backend. [.....] Nextcloud Web interface\n\tWeb browser requirements\n\tNavigating the main user interface\n\n\tFiles & synchronization\n\tAccessing your files using the Nextcloud Web interface\n\tAccessing Nextcloud files using WebDAV\n\tGallery app\n\tManaging deleted files\n\tDesktop and mobile synchronization\n\tEncrypting your Nextcloud files on the server\n\tUsing Federation Shares\n\tMaking anonymous uploads\n\tLarge file uploads\n\tStorage quota\n\tVersion control\n\tProjects\n\n\tGroupware\n\tUsing the Contacts app\n\tUsing the Calendar app\n\tSynchronizing with Android\n\tSynchronizing with iOS\n\tSynchronizing with macOS\n\tSynchronizing with Thunderbird\n\tSynchronizing with KDE Kontact\n\tSynchronizing with the GNOME desktop\n\tSynchronizing with Windows 10\n\n\tSetting your preferences\n\tUsing two-factor authentication\n\tConfiguring two-factor authentication\n\tRecovery codes in case you lost your 2nd factor\n\tLogging in with two-factor authentication\n\tUsing client applications with two-factor authentication\n\n\tManage connected browsers and devices\n\tManaging connected browsers\n\tManaging devices\n\tDevice-specific passwords and password changes\n\n\tExternal Storage\n\tConfiguring external Storage","tags":[],"attachment":{"date":"2020-06-04T07:04:51Z","content_type":"application/pdf","author":"The Nextcloud developers","language":"en","title":"Nextcloud User Manual","content_length":96923},"provider":"files","subtags":[],"parts":{"comments":""},"links":[],"share_names":{"pboccardo":"Nextcloud Manual.pdf"},"hash":"55f080439a694e755f77b96f69d07d2e"}}]}} here is the system info: Thanks a lot for your suggestions in advance. |
Hi, $ sudo nextcloud.occ full:test results with
|
hi, i solved it recently on a nextcloud 24 (centos 7 installation) by installing elasticsearch version 7 instead of version 6. |
Hello please help me i can't find any solution! Thanks
Here is my env:
NextCloud 15.0.5
Full text search 1.2.5
Full text search - Elasticsearch Platform 1.2.4
Full text search - Files 1.2.6
Full text search - Files - Tesseract OCR 1.2.0
PHP 7.2.10
mysql Ver 15.1 Distrib 5.5.60-MariaDB
/var/www/html/nextcloud# sudo -u apache php occ fulltextsearch:test
.Testing your current setup:
Creating mocked content provider. ok
Testing mocked provider: get indexable documents. (2 items) ok
Loading search platform. (Elasticsearch) ok
Testing search platform. ok
Locking process ok
Removing test. ok
Pausing 3 seconds 1 2 3 ok
Initializing index mapping. ok
Indexing generated documents. ok
Pausing 3 seconds 1 2 3 ok
Retreiving content from a big index (license). (size: 32386) ok
Comparing document with source. ok
Searching basic keywords:
TypeError: Return value of OCA\FullTextSearch\Model\SearchRequest::getProviders() must be of the type array, null returned in /var/www/html/nextcloud/apps/fulltextsearch/lib/Model/SearchRequest.php:110
Stack trace:
#0 /var/www/html/nextcloud/apps/fulltextsearch/lib/Model/SearchRequest.php(665): OCA\FullTextSearch\Model\SearchRequest->getProviders()
Search within the trash bin #1 [internal function]: OCA\FullTextSearch\Model\SearchRequest->jsonSerialize()
Search within the shared file #2 /var/www/html/nextcloud/apps/fulltextsearch_elasticsearch/lib/Service/SearchService.php(98): json_encode(Object(OCA\FullTextSearch\Model\SearchRequest))
Supporting epub and openoffice documents #3 /var/www/html/nextcloud/apps/fulltextsearch_elasticsearch/lib/Platform/ElasticSearchPlatform.php(340): OCA\FullTextSearch_ElasticSearch\Service\SearchService->searchRequest(Object(Elasticsearch\Client), Object(OCA\FullTextSearch\Model\SearchResult), Object(OCP\FullTextSearch\Model\DocumentAccess))
Number of documents #4 /var/www/html/nextcloud/apps/fulltextsearch/lib/Command/Test.php(582): OCA\FullTextSearch_ElasticSearch\Platform\ElasticSearchPlatform->searchRequest(Object(OCA\FullTextSearch\Model\SearchResult), Object(OCP\FullTextSearch\Model\DocumentAccess))
0 1 0 #5 /var/www/html/nextcloud/apps/fulltextsearch/lib/Command/Test.php(434): OCA\FullTextSearch\Command\Test->search(Object(Symfony\Component\Console\Output\ConsoleOutput), Object(OCA\FullTextSearch_ElasticSearch\Platform\ElasticSearchPlatform), Object(OCA\FullTextSearch\Provider\TestProvider), Object(OCP\FullTextSearch\Model\DocumentAccess), 'test', Array)
merge 0.2.0 #6 /var/www/html/nextcloud/apps/fulltextsearch/lib/Command/Test.php(170): OCA\FullTextSearch\Command\Test->testSearchSimple(Object(Symfony\Component\Console\Output\ConsoleOutput), Object(OCA\FullTextSearch_ElasticSearch\Platform\ElasticSearchPlatform), Object(OCA\FullTextSearch\Provider\TestProvider))
escape using queryhelper #7 /var/www/html/nextcloud/3rdparty/symfony/console/Command/Command.php(255): OCA\FullTextSearch\Command\Test->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
update schema using API #8 /var/www/html/nextcloud/core/Command/Base.php(166): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
double display #9 /var/www/html/nextcloud/3rdparty/symfony/console/Application.php(946): OC\Core\Command\Base->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
0.3.0 #10 /var/www/html/nextcloud/3rdparty/symfony/console/Application.php(248): Symfony\Component\Console\Application->doRunCommand(Object(OCA\FullTextSearch\Command\Test), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
Auto-check configuration on upgrade #11 /var/www/html/nextcloud/3rdparty/symfony/console/Application.php(148): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
flag the configuration as incomplete #12 /var/www/html/nextcloud/lib/private/Console/Application.php(213): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
More robust way to get the local absolute path of a file #13 /var/www/html/nextcloud/console.php(96): OC\Console\Application->run()
Forbidden Exception when ./occ nextant:scan #14 /var/www/html/nextcloud/occ(11): require_once('/var/www/html/n...')
The text was updated successfully, but these errors were encountered: