-
Notifications
You must be signed in to change notification settings - Fork 26
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
Sulu CMS 1.6 Search indexes “page_example_published” not known.
error (1.5 works)
#93
Comments
do not know why but after some time publishing posts on 1.6 project the index for 'page_example_published' appeared, but I think the default to see |
and |
@mykbas bin/console (bin/adminconsole) will only create indexes of the admin for the website you need call |
@alexander-schranz I've just tried removing indexes folders and running with |
@mykbas I'm not able to reproduce it. Can you check it for a new project by running the following commands: composer create-project sulu/sulu-minimal my-project
cd new-project
bin/adminconsole sulu:build dev
# now you should see a list of indexes
ls var/indexes/
bin/adminconsole massive:search:purge --all --force
# now no indexes should be listed
ls var/indexes/
bin/adminconsole massive:search:reindex
# now the following indexes should be listed
# - massive_category-en-i18n
# - massive_page_example-en-i18n
# - massive_contact
# - massive_media-en-i18n
# - massive_snippet-en-i18n
# - massive_page-en-i18n
ls var/indexes/
bin/websiteconsole massive:search:reindex
# now also the published index is listed there:
# - massive_page_example_published-en-i18n
ls var/indexes/ |
@alexander-schranz for comparison I just tried on the same environment PHP7.0 v1.6 and 1.5 (previously tried also v1.3 - indexes worked as in 1.5) with output below: Sulu CMS 1.6 composer create-project sulu/sulu-minimal project
cd project
# var/indexes - nothing there
bin/adminconsole sulu:build dev
# now you should see a list of indexes
ls var/indexes/
# - massive_contact
# - massive_page-en-i18n
bin/adminconsole massive:search:purge --all --force
# now no indexes should be listed
ls var/indexes/
# var/indexes - nothing there
bin/adminconsole massive:search:reindex
ls var/indexes/
# - massive_contact
# - massive_page-en-i18n
bin/websiteconsole massive:search:reindex
ls var/indexes/
# - massive_contact
# - massive_page-en-i18n Sulu CMS 1.5 composer create-project sulu/sulu-minimal project 1.5
cd project
# var/indexes - nothing there
bin/adminconsole sulu:build dev
# now you should see a list of indexes
ls var/indexes/
# - massive_contact
# - massive_page_example-en-i18n
# - massive_page_example_published-en-i18n
bin/adminconsole massive:search:purge --all --force
# now no indexes should be listed
ls var/indexes/
# var/indexes - nothing there
bin/adminconsole massive:search:reindex
ls var/indexes/
# - massive_contact
# - massive_page_example-en-i18n
bin/websiteconsole massive:search:reindex
ls var/indexes/
# - massive_contact
# - massive_page_example-en-i18n
# - massive_page_example_published-en-i18n |
@mykbas does this only happens when you have no pages? or when you create a new page in the tree and purge and reindex the published does also exist in 1.6? |
@alexander-schranz it happens with no pages. When I create new page via admin panel |
@mykbas how did you purge and reindex? What is the output of reindexing command. |
@alexander-schranz Thanks for your patience and pointing out the right direction. Probably I messed smth up with consoles or maybe there were leftovers in docker containers, I was reproducing the whole workflow from scratch and it seems to be working now:
|
This is definitely not fixed. Just set up a new sulu instance through sulu-docker and encountered the same problem., the steps above did not help. |
Hello, I've faced strange behavior of sulu-minimal project, I am installing sulu-minimal 1.5 - indexing of massive_page_example_published-en-i18n and search field on client homepage works as expected, sulu-minimal 1.6 gives an error
Search indexes "page_example_published" not known. Known indexes: "page", "contact"
and only massive_contact and massive_page-en-i18n indexes are created.P.S. tried purging and rebuilding indexing with no errors, cleared cache, installed barebone repo from scratch both locally (PHP7.2) and on docker containers (PHP7.1)... now I just got stuck
Example projects I have also tested:
The text was updated successfully, but these errors were encountered: