Skip to content
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

Site root isn't included in search results #115

Open
JeffersonBledsoe opened this issue Mar 29, 2024 · 0 comments
Open

Site root isn't included in search results #115

JeffersonBledsoe opened this issue Mar 29, 2024 · 0 comments

Comments

@JeffersonBledsoe
Copy link
Member

JeffersonBledsoe commented Mar 29, 2024

When using the built in search on Plone 6.0.x, I can see the site root in the search results. However, once I have elasticsearch enabled using the 'enabled' option in the control panel, the site root no longer appears in the results.

It may be related to the following exception from trying to enable elastic on an empty 6.0, but I've yet to really explore this any further than noticing the issue:

Traceback (innermost last):
  Module ZPublisher.WSGIPublisher, line 187, in transaction_pubevents
  Module transaction._manager, line 257, in commit
  Module transaction._manager, line 134, in commit
  Module transaction._transaction, line 283, in commit
  Module transaction._compat, line 50, in reraise
  Module transaction._transaction, line 274, in commit
  Module transaction._transaction, line 457, in _commitResources
  Module transaction._compat, line 50, in reraise
  Module transaction._transaction, line 439, in _commitResources
  Module Products.CMFCore.indexing, line 324, in tpc_finish
  Module Products.CMFCore.indexing, line 240, in commit
  Module collective.elasticsearch.queueprocessor, line 136, in commit
  Module collective.elasticsearch.manager, line 189, in bulk
  Module collective.elasticsearch.manager, line 168, in _bulk_call
  Module elasticsearch.client.utils, line 92, in _wrapped
  Module elasticsearch.client, line 458, in bulk
  Module elasticsearch.client.utils, line 102, in _bulk_body
  Module elasticsearch.serializer, line 107, in dumps
elasticsearch.exceptions.SerializationError: ({'path': {'path': '/Plone', 'depth': 1}, 'total_comments': [], 'allowedRolesAndUsers': ['Anonymous'], 'is_folderish': True, 'cmf_uid': [], 'is_default_page': False, 'Creator': 'admin', 'start': '1900-01-01T00:00:00', 'exclude_from_nav': False, 'getObjPositionInParent': None, 'id': 'Plone', 'SearchableText': "If you're seeing this text instead of the web site you were expecting, the owner of this web site has just installed Plone. Do not contact the Plone Team or the Plone support channels about this. Get started Before you start exploring your newly created Plone site, please do the following: Make sure you are logged in as an admin/manager user. You should have a Site Setup entry in the user menu.  Set up your mail server . Plone needs a valid SMTP server to verify users and send out password reminders.  Decide what security level you want on your site. Allow self registration, password policies, and more. Get comfortable After that, we suggest you do one or more of the following: Get the latest news about Plone. Read the documentation . Follow a training . Explore the available add-ons for Plone. Read or subscribe to the support channels . Make it your own Plone has many settings to make it do what you want. Some examples include: Create content-types and define their default-layout in the content types controlpanel  Manage Users, Groups and their Roles in the users and groups controlpanels ...and many more settings are available in the Site Setup . About Plone and Volto Plone is a content management system built on Python, with its first release in 2001. Plone has features that appeal to developers and users alike, such as customizable content types, hierarchical URL object traversing, and a sophisticated content workflow powered by a granular permissions model. This allows you to build anything from simple websites to enterprise-grade intranets. Volto is the frontent for Plone written in React. It exposes all these features and communicates with Plone via its mature REST API . Volto can be easily themed and is highly customizable. Support the Plone Foundation Plone is made possible only through the efforts of thousands of dedicated individuals and hundreds of companies. The Plone Foundation: ...protects and promotes Plone. ...is a recognized 501(c)(3) charitable organization with the United States Internal Revenue Service. ...receives donations that may be tax-deductible.  Support the Foundation and help make Plone better! Thanks for using our product. We hope you like it! – The Plone Team Plone Site", 'Subject': (), 'getRawRelatedItems': [], 'effectiveRange': {'effectiveRange1': '1969-12-31T00:00:00+00:00', 'effectiveRange2': '2499-12-31T00:00:00+00:00'}, 'Title': 'Site', 'portal_type': 'Plone Site', 'block_types': {'slate', 'title'}, 'getId': 'Plone', 'in_reply_to': [], 'object_provides': ('plone.dexterity.schema.generated.Plone_5_1711670299_2_0270128_0_Plone_1_Site', 'plone.app.relationfield.behavior.IRelatedItems', 'plone.app.lockingbehavior.behaviors.ILocking', 'plone.app.dexterity.behaviors.discussion.IAllowDiscussion', 'plone.app.dexterity.behaviors.exclfromnav.IExcludeFromNavigation', 'plone.app.contenttypes.behaviors.tableofcontents.ITableOfContents', 'plone.restapi.behaviors.IBlocks', 'plone.supermodel.model.Schema', 'plone.dexterity.interfaces.IDexteritySchema', 'plone.base.interfaces.siteroot.IPloneSiteRoot', 'plone.base.interfaces.siteroot.INavigationRoot', 'Products.CMFCore.interfaces.ISiteRoot', 'plone.base.interfaces.syndication.ISyndicatable', 'Products.Five.component.interfaces.IObjectManagerSite', 'zope.component.interfaces.ISite', 'plone.dexterity.interfaces.IDexterityContainer', 'Products.CMFCore.interfaces.ICatalogAware', 'Products.CMFCore.interfaces.IWorkflowAware', 'Products.CMFCore.interfaces.IOpaqueItemManager', 'Products.CMFCore.interfaces.IFolderish', 'Products.CMFCore.interfaces.IDynamicType', 'zope.interface.common.collections.ISized', 'zope.interface.common.collections.IContainer', 'zope.interface.common.ABCInterface', 'OFS.interfaces.IWriteLock', 'OFS.EtagSupport.EtagBaseInterface', 'plone.dexterity.interfaces.IDexterityContent', 'plone.uuid.interfaces.IAttributeUUID', 'Products.CMFCore.interfaces.ICatalogableDublinCore', 'Products.CMFCore.interfaces.IMutableDublinCore', 'Products.CMFCore.interfaces.IMutableMinimalDublinCore', 'Products.CMFCore.interfaces.IDublinCore', 'Products.CMFCore.interfaces.IMinimalDublinCore', 'zope.location.interfaces.IContained', 'zope.location.interfaces.ILocation'), 'sync_uid': [], 'modified': '2024-03-28T23:58:34+00:00', 'commentators': [], 'created': '2024-03-28T23:58:16+00:00', 'Date': '2024-03-28T23:58:34+00:00', 'expires': '2499-12-31T00:00:00+00:00', 'UID': 'fa324a9024644387a8b5e0bd3ade5afe', 'effective': '1969-12-31T00:00:00+00:00', 'sortable_title': 'site', 'Description': '', 'end': '1900-01-01T00:00:00', 'Type': 'Plone Site', 'review_state': []}, TypeError("Unable to serialize {'slate', 'title'} (type: <class 'set'>)"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant