Code Monkey home page Code Monkey logo

Comments (11)

alexander-schranz avatar alexander-schranz commented on July 21, 2024 1

@mykbas bin/console (bin/adminconsole) will only create indexes of the admin for the website you need call bin/websiteconsole

from sulu-minimal.

mykbas avatar mykbas commented on July 21, 2024

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 zero found as in v.1.5 would be better for newly created applications.

from sulu-minimal.

mykbas avatar mykbas commented on July 21, 2024

and bin/console massive:search:index:rebuild doesn't create page_example_published however there are published pages in database, this index folder is somehow created on publishing new data...

from sulu-minimal.

mykbas avatar mykbas commented on July 21, 2024

@alexander-schranz I've just tried removing indexes folders and running with bin/websiteconsole massive:search:index:rebuild on barebone sulu-minimal v1.6 - only massive_contact and massive_page-en-i18n created and same error Search indexes "page_example_published" not known. for search on homepage.

from sulu-minimal.

alexander-schranz avatar alexander-schranz commented on July 21, 2024

@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/ 

from sulu-minimal.

mykbas avatar mykbas commented on July 21, 2024

@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

from sulu-minimal.

alexander-schranz avatar alexander-schranz commented on July 21, 2024

@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?

from sulu-minimal.

mykbas avatar mykbas commented on July 21, 2024

@alexander-schranz it happens with no pages. When I create new page via admin panel published index folder appears, but after purging and reindexing (also with bin/websiteconsole) published is missing again for v1.6. Next time index is created after continuing adding new pages via admin panel.

from sulu-minimal.

alexander-schranz avatar alexander-schranz commented on July 21, 2024

@mykbas how did you purge and reindex? What is the output of reindexing command.

from sulu-minimal.

mykbas avatar mykbas commented on July 21, 2024

@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:

  1. Creating a new project sulu/sulu-minimal (1.6.16)
composer create-project sulu/sulu-minimal project
cd project
bin/adminconsole sulu:build dev
ls var/indexes/
# - massive_contact 
# - massive_page-en-i18n
  1. Add a new simple page via content in admin panel.
ls var/indexes/
# - massive_contact  
# - massive_page-en-i18n  
# - massive_page_example-en-i18n  
# - massive_page_example_published-en-i18n
  1. Purge, reindex and check:
bin/adminconsole massive:search:purge --all --force
ls var/indexes/
# empty

bin/adminconsole massive:search:reindex
ls var/indexes/
# - massive_contact  
# - massive_page-en-i18n  
# - massive_page_example-en-i18n  
bin/websiteconsole massive:search:reindex
ls var/indexes/
# - massive_contact  
# - massive_page-en-i18n  
# - massive_page_example-en-i18n  
# - massive_page_example_published-en-i18n

from sulu-minimal.

mareksuscak avatar mareksuscak commented on July 21, 2024

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.

from sulu-minimal.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.