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.2 (2011-12-03)

  • KeywordIndex: Store docids in TreeSet rather than a Set when the number of documents matching a word reaches a configurable threshold (default 64). The rule is applied to individual words at indexing time, but you can call the new optimize method to optimize all the words in an index at once. Designed to fix LP #881950.

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.2.tar.gz (63.2 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.2.win-amd64-py2.7.exe (325.4 kB view details)

Uploaded Source

zope.index-3.6.2.win-amd64-py2.6.exe (325.4 kB view details)

Uploaded Source

zope.index-3.6.2.win32-py2.7.exe (297.9 kB view details)

Uploaded Source

zope.index-3.6.2.win32-py2.6.exe (297.9 kB view details)

Uploaded Source

zope.index-3.6.2-py2.7-win-amd64.egg (203.1 kB view details)

Uploaded Egg

zope.index-3.6.2-py2.7-win32.egg (203.1 kB view details)

Uploaded Egg

zope.index-3.6.2-py2.6-win-amd64.egg (203.7 kB view details)

Uploaded Egg

zope.index-3.6.2-py2.6-win32.egg (203.7 kB view details)

Uploaded Egg

zope.index-3.6.2-py2.5-win32.egg (203.3 kB view details)

Uploaded Egg

zope.index-3.6.2-py2.4-win32.egg (205.3 kB view details)

Uploaded Egg

File details

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

File metadata

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

File hashes

Hashes for zope.index-3.6.2.tar.gz
Algorithm Hash digest
SHA256 96cd931423ded4aaf3219cc1842cc86a66f8edf0a2db13fabae6c6c1558c8905
MD5 d8fc9056bbf605c98f9bc853781dc153
BLAKE2b-256 b232648bfc5f132683a3febb4ff9357f64e425e27ac098964cc1090fca48796a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for zope.index-3.6.2.win-amd64-py2.7.exe
Algorithm Hash digest
SHA256 a2194f2e9ac8a068d8b78a32521f3d150d7a28a55d036bd49274c4cf08d983ae
MD5 36c68fb57186b7107e7dd9028b231d7f
BLAKE2b-256 2764826300685a6cc84636e058225f6bc7fe00dbb6c1b91d937b99f6d52f22f6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for zope.index-3.6.2.win-amd64-py2.6.exe
Algorithm Hash digest
SHA256 9279192efb44d76a41381973852393b872aa98146ae116ee7270aad4640d0141
MD5 9ad95607b9f0c15843f0589a05feb3c1
BLAKE2b-256 aad40a8018c2153c5fc81c904268cf916c4c4a8e3232617df65af02fa0039324

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for zope.index-3.6.2.win32-py2.7.exe
Algorithm Hash digest
SHA256 a90e54a778e52a83f88b44a4066e8dd470edc69ff3613111d1cea1585482c0c0
MD5 801d89f1aed07ec0957b11362301eb9e
BLAKE2b-256 243f5dbeda99d44ed0ed7d6ec63dacd2851103dc90a41e8cba0ab2543d870823

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for zope.index-3.6.2.win32-py2.6.exe
Algorithm Hash digest
SHA256 292e16b145b1649c987796c8e759c6ba9351572de5ac48e190c71b078e002ff7
MD5 efac5737cf722ad8b48721489d3bb8b3
BLAKE2b-256 025ec6cc16eaadbfb8f4ce5d808e8f59d51ebcfcb85f49f3ec7ec4b345f83e53

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for zope.index-3.6.2-py2.7-win-amd64.egg
Algorithm Hash digest
SHA256 856ed34908c0b48fe884142b77d01c4348bc65232200afd945baad0e29159853
MD5 15bb2919ec4093cdfc1310a8747f8776
BLAKE2b-256 8cb47ecef0d86c98b41aa67fd228b0abd533f7cad4bb07e22757e68b2d54c5ae

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for zope.index-3.6.2-py2.7-win32.egg
Algorithm Hash digest
SHA256 e1c97c6bded1ff906154a4593b7c803f0d09736e7b8dcb363ac691c039b0a7d3
MD5 5556d561848edb8e1576678b208962d7
BLAKE2b-256 60f90e0e5a238bd65487e7356882227ce9deeb51f9f316495550a7109a50bf91

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for zope.index-3.6.2-py2.6-win-amd64.egg
Algorithm Hash digest
SHA256 88a78f2eac68c30c5f6cb30501f79b26826dda04b7729b62afd70b6b340e13a9
MD5 ef2d9d5aabe069ebcb19111faf0ef365
BLAKE2b-256 5f0a4594853a8f9058a5f3ebd92b0c05867d32af9339801f6f30343e0620909e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for zope.index-3.6.2-py2.6-win32.egg
Algorithm Hash digest
SHA256 a6ef288ac78e61ce19e88203bfedffe00d9f19d5ea867670c0d1da9d8b64e406
MD5 4c0f280fd999df81908475fcfe7751d1
BLAKE2b-256 11d54c98791fe66f86a29d01b58f1c8ca1e4fdd5e59ec912f33f46f1086faa9f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for zope.index-3.6.2-py2.5-win32.egg
Algorithm Hash digest
SHA256 adea406b0a57f9bc12d547057038635b7b00b587778fd602c147c60dec8f3647
MD5 dcd8e37a31cceab026b05714155d7407
BLAKE2b-256 b6b9d10faba37ea93782f7794400c4224cd62896dfe47b2231aec895615e879d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for zope.index-3.6.2-py2.4-win32.egg
Algorithm Hash digest
SHA256 fcfb36868ad82aa08d7b9ec39f5a566cfdfe63e50a0108b08ebcb62a1e430896
MD5 8c4da9559e588d2dad5246b4d9b6087d
BLAKE2b-256 92ebc945927402da2df892a6c0561b4293c9a6ba6c465392fde795c786771ca9

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