Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

Download
ActivePython
INSTALL>
pypm install products.advancedquery

How to install Products.AdvancedQuery

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install products.advancedquery
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
3.0.3 Available View build log
3.0.2 Available View build log
3.0.1 Available View build log
Windows (64-bit)
3.0.3 Available View build log
3.0.2 Available View build log
3.0.1 Available View build log
Mac OS X (10.5+)
3.0.3 Available View build log
3.0.2 Available View build log
3.0.1 Available View build log
Linux (32-bit)
3.0.3 Available View build log
3.0.2 Available View build log
3.0.1 Available View build log
Linux (64-bit)
3.0.3 Available View build log
3.0.2 Available View build log
3.0.1 Available View build log
 
Author
License
BSD (see "Products/AdvancedQuery/LICENSE.txt", for
Lastest release
version 3.0.3 on Mar 22nd, 2011

AdvancedQuery

AdvancedQuery is a Zope product aimed to overcome several limitations and bugs of ZCatalog's native search function.

Like ZCatalog search, it supports elementary index searches. While ZCatalog can combine such elementary searches only by "and", AdvancedQuery allows to arbitrarily combine them by & (and), | (or) and ~ (not). Besides, it supports an extended range of elementary queries, such as matching, indexed queries, literal result sets. Finally, it supports incremental filtering.

AdvancedQuery also extends the sorting capabilities of ZCatalog. ZCatalog supports efficient index based sorting on one level. AdavancedQuery supports sorting on arbitrary levels of field indexes. Furthermore, sorting is performed incrementally -- only as far as the result is accessed. This can drastically speed up sorting. Finally, AdvancedQuery can sort based on query based ranks. Unlike ZCatalog which simply ignores hits for which it does not have a sort value, AdvancedQuery sorts such hits at the end of the respective list.

AdvancedQuery works best when used together with Products.ManagableIndex and dm.incrementalsearch. Some of its features depend on these products, e.g. matching and incremental filtering. Furthermore, these additional components can speed up queries by several orders of magnitude.

For more information, see AdvancedQuery.html in the doc subfolder.

Partial history

3.0.3

use the newer index sorting API (documentToKeyMap) if the older API (keyForDocument) is missing or obviously broken.

The fix has been introduced for the nogopip index used in Plone 4.1. Unfortunately, this index version not only defines a broken keyForDocument but in addition uses call frame inspection targeted at ZCatalog sorting which fails when called by AdvancedQuery, see https://dev.plone.org/plone/ticket/11637. Until this problem is resolved, you cannot use a nogopip index as sort index for AdvancedQuery.

3.0.2
Zope 2.13 compatibility
3.0.1
fix test suite for Zope 2.12 by dropping ZopeTestCase.framework support. This implies that the test suite can now only be executed via the Zope test runner.

Subscribe to package updates

Last updated Mar 22nd, 2011

Download Stats

Last month:3

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.