Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7054683
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T03:39:24+00:00 2026-05-28T03:39:24+00:00

I have a site running Plone 4.1 which has a custom content type developed

  • 0

I have a site running Plone 4.1 which has a custom content type developed with Dexterity 1.1. My content authors can add keywords to basic Plone pages using the Categorization tab and users successfully find these pages if they search using one of the keywords.

My content authors have also produced pages using a Dexterity custom content type I developed. This was defined using a Python-based file system schema. If users search for terms in the title and description of a Dexterity content type they get back the Dexterity pages in the search results. If they search using a query term in the keywords field they get no results. However, under the Advanced search form they can find the Dexterity page if they highlight the appropriate tag in the list of tags.

I’ve inspected the contents of the search index using the portal_catalog tool in ZMI. It appears keywords are being added to the SearchableText field for basic content types such as Page but for my Dexterity-based custom content type they are not.

Do I need to write additional code to insert the contents of the keywords field into the SearchableText index?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T03:39:25+00:00Added an answer on May 28, 2026 at 3:39 am

    Let’s say your Dexterity content type implements IFoo, and the keywords attribute defined in your schema is a list of strings.

    You define your indexer in this way:

    from five import grok
    from plone.indexer.decorator import indexer
    from my.dexteritycontent.foo import IFoo
    
    @indexer(IFoo)
    def searchableIndexer(context):
        keywords = " ".join(context.keywords)
        return "%s %s %s" % (context.title, context.description, keywords)
    
    grok.global_adapter(searchableIndexer, name="SearchableText")
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have a site running on MOSS 2007 which makes calls to custom web
We have a hosted site that has a CMS we built running on a
I have been running zope / plone site for about a year now -
I have an ASP.NET site that has been running perfectly for a long time,
I have a site running on an Azure web role and I can force
I have a site running in a Windows shared hosting environment. In their control
I have a site running in django and want to make it available on
I have a web site running via IIS7 on Vista. The site is running
We have a legacy ASP.net powered site running on a IIS server, the site
I have a following setup: App - Magnolia site running under Tomcat 6.0.16 ISAPI

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.