Skip to main content

Indices for using with catalog like text, field, etc.

Project description

Overview

The zope.index package provides several indices for the Zope catalog. These include:

  • a field index (for indexing orderable values),

  • a keyword index,

  • a topic index,

  • a text index (with support for lexicon, splitter, normalizer, etc.)

Changes

3.6.1 (2010-07-08)

  • TextIndex: reuse the lexicon from the underlying Okapi / Cosine index, if passed. (LP #232516)

  • Lexicon: avoid raising an exception when indexing None. (LP #598776)

3.6.0 (2009-08-03)

  • Improved test readability and reached 100% test coverage.

  • Fixed a broken optimization in okascore.c: it was passing a Python float to the PyInt_AS_LONG() macro. This resulted in wrong scores, especially on 64 bit platforms, where all scores typically ended up being zero.

  • Changed okascore.c to produce the same results as its Python equivalent, reducing the brittleness of the text index tests.

3.5.2 (2009-06-09)

  • Port okascore.c optimization used in okapiiindex from Zope2 catalog implementation. This module is compiled conditionally, based on whether your environment has a working C compiler.

  • Don’t use len(self._docweight) in okapiindex _search_wids method (obtaining the length of a BTree is very expensive at scale). Instead use self.documentCount(). Also a Zope2 port.

3.5.1 (2009-02-27)

  • The baseindex, okapiindex, and lexicon used plain counters for various lengths, which is unsuitable for production applications. Backport code from Zope2 indexes which opportunistically replaces the counters with BTree.Length objects.

  • Backport non-insane version of baseindex._del_wordinfo from Zope2 text index. This improves deletion performance by several orders of magnitude.

  • Don’t modify given query dictionary in the KeywordIndex.apply method.

  • Move FieldIndex’s sorting functionality to a mixin class so it can be reused by zc.catalog’s ValueIndex.

3.5.0 (2008-12-30)

  • Remove zope.testing from dependencies, as it’s not really needed.

  • Define IIndexSort interface for indexes that support sorting.

  • Implement sorting for FieldIndex (adapted from repoze.catalog/ZCatalog).

  • Add an apply method for KeywordIndex/TopicIndex, making them implement IIndexSearch that can be useful in catalog.

  • Optimize the search method of KeywordIndex/TopicIndex by using multiunion for the or operator and sorting before intersection for and.

  • IMPORTANT: KeywordIndex/TopicIndex now use IFSets instead of IISets. This makes it more compatible with other indexes (for example, when using in catalog). This change can lead to problems, if your code somehow depends on the II nature of sets, as it was before.

    Also, FilteredSets used to use IFSets as well, if you have any FilteredSets pickled in the database, you need to migrate them to IFSets yourself. You can do it like that:

    filter._ids = filter.family.IF.Set(filter._ids)

    Where filter is an instance of FilteredSet.

  • IMPORTANT: KeywordIndex are now non-normalizing. Because it can be useful for non-string keywords, where case-normalizing doesn’t make any sense. Instead, it provides the normalize method that can be overriden by subclasses to provide some normalization.

    The CaseInsensitiveKeywordIndex class is now provided that do case-normalization for string-based keywords. The old CaseSensitiveKeywordIndex is gone, applications should use KeywordIndex for that.

Looks like the KeywordIndex/TopicIndex was sort of abadonware and wasn’t used by application developers, so after some discussion we decided to refactor them to make them more usable, optimal and compatible with other indexes and catalog.

Porting application from old KeywordIndex/TopicIndex to new ones are rather easy and explained above, so we believe that it isn’t a problem. Please, use zope3-users@zope.org or zope-dev@zope.org mailing lists, if you have any problems with migration.

Thanks Chris McDonough of repoze for supporting and useful code.

3.4.1 (2007-09-28)

  • Fixed bug in package metadata (wrong homepage URL).

3.4.0 (2007-09-28)

No further changes since 3.4.0a1.

3.4.0a1 (2007-04-22)

Initial release as a separate project, corresponds to zope.index from Zope 3.4.0a1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

zope.index-3.6.1.tar.gz (64.0 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

zope.index-3.6.1.win-amd64-py2.7.exe (324.3 kB view details)

Uploaded Source

zope.index-3.6.1.win-amd64-py2.6.exe (324.3 kB view details)

Uploaded Source

zope.index-3.6.1.win32-py2.7.exe (296.9 kB view details)

Uploaded Source

zope.index-3.6.1.win32-py2.6.exe (296.9 kB view details)

Uploaded Source

zope.index-3.6.1-py2.7-win-amd64.egg (201.7 kB view details)

Uploaded Egg

zope.index-3.6.1-py2.7-win32.egg (201.6 kB view details)

Uploaded Egg

zope.index-3.6.1-py2.6-win-amd64.egg (202.2 kB view details)

Uploaded Egg

zope.index-3.6.1-py2.6-win32.egg (202.1 kB view details)

Uploaded Egg

zope.index-3.6.1-py2.5-win32.egg (201.7 kB view details)

Uploaded Egg

zope.index-3.6.1-py2.4-win32.egg (203.7 kB view details)

Uploaded Egg

File details

Details for the file zope.index-3.6.1.tar.gz.

File metadata

  • Download URL: zope.index-3.6.1.tar.gz
  • Upload date:
  • Size: 64.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for zope.index-3.6.1.tar.gz
Algorithm Hash digest
SHA256 8554e8bb0e32d62aa560566cdeac8fb10296610ec8a70447398217ec68ce7886
MD5 023e576e3e44e6c7dbea4c6c3a8729a6
BLAKE2b-256 57c9fc29b64fc5f54cd1b5f39e72e5d75c79a2e330537d498cee016901ba9741

See more details on using hashes here.

File details

Details for the file zope.index-3.6.1.win-amd64-py2.7.exe.

File metadata

File hashes

Hashes for zope.index-3.6.1.win-amd64-py2.7.exe
Algorithm Hash digest
SHA256 7835357ee41e4e52df108cbf6c5f0ee9a121a993b939365d6557ebc75c9d786c
MD5 a14aa5d2f1508f0c6c6e5c71f224b57f
BLAKE2b-256 71f2b33e2d484db0308540ab2dc4aff19c41c6a7a725e9f31a3e9c24a0173528

See more details on using hashes here.

File details

Details for the file zope.index-3.6.1.win-amd64-py2.6.exe.

File metadata

File hashes

Hashes for zope.index-3.6.1.win-amd64-py2.6.exe
Algorithm Hash digest
SHA256 20a3f598864696fc4ba9184b69d9b06bcf0c68ff4ad34f792725a53dbf1a6e0e
MD5 ef9280aa3c39c30e25292ae94117db3e
BLAKE2b-256 cef4d49105da9a5635e6aeb7d713bb20f288febde88218aeb0688630a835798f

See more details on using hashes here.

File details

Details for the file zope.index-3.6.1.win32-py2.7.exe.

File metadata

File hashes

Hashes for zope.index-3.6.1.win32-py2.7.exe
Algorithm Hash digest
SHA256 402e86ea250d9d64c6044e1f39ae6062ea5cba4955e898659084b23bdb2fdfb2
MD5 c90ada3b3c6686e886f9d80bb5273998
BLAKE2b-256 4672948639b260903efef83f91d34836999e0c85c466ce0e0c3c43771ec31b48

See more details on using hashes here.

File details

Details for the file zope.index-3.6.1.win32-py2.6.exe.

File metadata

File hashes

Hashes for zope.index-3.6.1.win32-py2.6.exe
Algorithm Hash digest
SHA256 2279bd4409b7ee88a8f21594adcce4df8723f64a098125df49fd73d6e1237d9e
MD5 f053db4e37e244d87807439e7c1c318c
BLAKE2b-256 759baedeb1d10137fdc05e7256ee693afa54fa38e590f6a2e6c250424bf2f386

See more details on using hashes here.

File details

Details for the file zope.index-3.6.1-py2.7-win-amd64.egg.

File metadata

File hashes

Hashes for zope.index-3.6.1-py2.7-win-amd64.egg
Algorithm Hash digest
SHA256 2669fe1d5982909dc6b1dbc070a287421d004ef35d20fb301a6acf13443e0c68
MD5 e1643d9bf1eae9916ec9708d1c2baf5b
BLAKE2b-256 addc521f203a4de9083a29e572f87c8688394be03e4901cdd6fe2864f17ab19f

See more details on using hashes here.

File details

Details for the file zope.index-3.6.1-py2.7-win32.egg.

File metadata

File hashes

Hashes for zope.index-3.6.1-py2.7-win32.egg
Algorithm Hash digest
SHA256 cbb83acd457c7b412b906424bdad39f3f6777fd49be2d9258bd4929a84a104c0
MD5 f468c61a871cbcbc7ec2541bf7df2944
BLAKE2b-256 c459e0a67858b1c0a5ba836c3e037a20b120f2effbca21bb93159012ca401ce3

See more details on using hashes here.

File details

Details for the file zope.index-3.6.1-py2.6-win-amd64.egg.

File metadata

File hashes

Hashes for zope.index-3.6.1-py2.6-win-amd64.egg
Algorithm Hash digest
SHA256 d1a6173342763494d238c21202131c2c1efc070b7e811be7455db47b823e35e4
MD5 4a760911ba5c77fc2b17d39981b7a197
BLAKE2b-256 e8341d3f55796d0a0b52284d8335facb370d5a09141fd8baf24ee1361ccced10

See more details on using hashes here.

File details

Details for the file zope.index-3.6.1-py2.6-win32.egg.

File metadata

File hashes

Hashes for zope.index-3.6.1-py2.6-win32.egg
Algorithm Hash digest
SHA256 7d79bff6a5ebf9f024c0b6ced760e6038c40803eeb70739a35e5e16d401bfec2
MD5 94b6a8f236f230fc503c161126b8d3c0
BLAKE2b-256 83c901b57d8f5bb8c765b5a9c6348213d08151042a76a3b552c0e8feee266987

See more details on using hashes here.

File details

Details for the file zope.index-3.6.1-py2.5-win32.egg.

File metadata

File hashes

Hashes for zope.index-3.6.1-py2.5-win32.egg
Algorithm Hash digest
SHA256 4e2406afcb5a66957fba80ad23558a70e53405bf165cdb793e0a9a776741d3c0
MD5 d09ea33c7ac2e76ece214e42c7ead62f
BLAKE2b-256 f1aeb1659b79e7fef7ef25e7fa5a00a0975831b4a8cd517b9fc3532cc4840cda

See more details on using hashes here.

File details

Details for the file zope.index-3.6.1-py2.4-win32.egg.

File metadata

File hashes

Hashes for zope.index-3.6.1-py2.4-win32.egg
Algorithm Hash digest
SHA256 339a7588a1cd18609c4844aa63da8de7c3d6c74d8ac936b459f339f7cb0d14cc
MD5 6d0d604350c8217cf52d66eb7fa25a43
BLAKE2b-256 173682f978c5a2ee359ba12c446c63daf8a32a81430f132b94bb5b2dcc92a276

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page