Skip to content

Correspondence Technologies

Sections
Personal tools
You are here: Home » Software » SfIndex Demo » collective - ProxyIndex

Package: collective - ProxyIndex

a test of SfIndex product

Sourceforge Info

Project Name: collective
Package Name: ProxyIndex
Files Page:
Browse CVS: http://cvs.sourceforge.net/viewcvs.py/collective/ProxyIndex/  

Package README (CVS ver. 1.1.1.1)

Copyright (c) 2003 Infrae. All rights reserved.
Copyright (c) 2004 Plone Group and Contributors. All rights reserved.
See also LICENSE.txt

Meta::

  Valid for:  ProxyIndex 1.1
  Author:     Kapil Thangavelu
  Email:      kapil@plone.org
  CVS:        $Revision: 1.1.1.1 $

Proxy Index

  Purpose

    Proxy Index, is a plugin catalog index. it uses a tales
    expression to retrieve a value to index from an object.
    the value retrieved can then be indexed by any available
    plugin index.

    Primary Use Case

     for indexing attributes of subobjects when indexing
     a container, like a composite elements of a compound
     document, or object annotations.

  Usage

    from the zcatalog indexes tab, add a index of type proxy
    index.

    on the add form the following fields are defined

     - id

     pick any valid id you like

     - delegated type

     the type of index you'd like to use for the value

     - tales expression

     a tales expression evaluated for the value to index

     the default context includes the following

      - object

        the object being indexed

     and the following standard tales objects

      - nothing

      - request

      - modules

     - Key Value Pairs, are input forms for passing
       values to the index constructor, if any are
       needed. (as with zctextindex for example).
       for most index types this can be left blank

     as an example here's how to fill out a form for zctextindex::

       key value pair: lexicon_id  my_lexicon
       key value pair: index_type  Cosine Measure
       key value pair: doc_attr    proxy_value


     the last key value pair could use a little explanation..
     internally the proxy index stores the index as an index
     named 'proxy_value', the behavior for most indexes is
     to index an attribute name thats equivalent to the index's
     id. proxy index, constructs a wrapper object for the indexing
     setting the value of the tales expression equal to that
     of the index name. in this case, zctextindex must be
     treated slightly differently as it can index an arbitrary
     attribute independent of its name, for most other index types
     this is not needed.


 

Powered by Plone

This site conforms to the following standards: