Personal tools
You are here: Home Documentation FAQs Why does LiveSearch return all entries, and Search returns nothing?
Support

Get Help

Join our chat rooms or support forums if you have more specific questions.

Plone Training
Learn how to design, build, and deploy a website in Plone through one of the numerous Plone training sessions around the world.
Find Plone training…
 
Document Actions

Why does LiveSearch return all entries, and Search returns nothing?

Up to Table of Contents
Warning: This item is marked as outdated.

This FAQ applies to: Plone 2.1.x

On my new site, LiveSearch returns all items on the site, while searching using the "Search" box returns no results. What's going on?

This is caused by a bug in Plone 2.1.0.

When performing certain operations, such as:

  • importing a site from a .zexp file via the ZMI
  • renaming a Plone site
  • or migrating from an earlier version

some entries can get lost from the portal_catalog, causing strange behaviors, such as

  • LiveSearch returns all items on the site, regardless of what you type in the search box.
  • Clicking on "Search" after entering text in the search box returns no results, even though LiveSearch returned lots of results.

To see if this affects you:

  1. Via the ZMI, visit portal_catalog in the root of your site.
  2. Click on Indexes in the tabs along the top.
  3. If you don't have Description, SearchableText or Title indexes, you probably have this problem.

To fix the problem:

From the Indexes tab, add 3 indexes:

  1. A ZCTextIndex, with the following values:
    id
    Description
    Indexed attributes
    Description
    Ranking Strategy
    Okapi BM25 Rank
    Lexicon
    plone_lexicon
  2. A ZCTextIndex, with the following values:
    id
    SearchableText
    Indexed attributes
    leave blank
    Ranking Strategy
    Okapi BM25 Rank
    Lexicon
    plone_lexicon
  3. A ZCTextIndex, with the following values:
    id
    Title
    Indexed attributes
    Title
    Ranking Strategy
    Okapi BM25 Rank
    Lexicon
    plone_lexicon

Then, reindex these three new indexes.

by Bill Fenner last modified October 20, 2005 - 17:16
Contributors: Bill Fenner, Joel Burton, Alec Mitchell
All content is copyright Plone Foundation and the individual contributors.

For any issues with the web site functionality, please file a ticket.

Please consult the policy on plone.org content if you want your content published on this site.

Servers and hosting by