On Monday 04 June 2001 16:55, Andreas Jung wrote:
>>Looks like you should write your own index type. Zope 2.4
>>comes with an PlugableIndex interface to allow third-party
>>indexes to be integrated into the Catalog.

this brings up an interesting question of what is the best way to register a 
new plugindex thats distributed with a product. Glancing over the cvs logs it 
looks as though plugin indexes are arranged to be the first product installed 
in Application.py. Given that what is the suggested method for registering a 
new plugin index?

Kapil


>>Andreas
>>----- Original Message -----
>>From: "Chris Withers" <[EMAIL PROTECTED]>
>>To: <[EMAIL PROTECTED]>
>>Sent: Monday, June 04, 2001 4:05 PM
>>Subject: [Zope-dev] Request for a Pluggin Index (NameIndex)
>>
>>> Hi,
>>>
>>> If anyone's got the time or fancies a challenge, could they write an
>>> index that behaves as follows:
>>>
>>> Indexed values:
>>> 1) C.J.Withers
>>> 2) Chris Withers
>>> 3) C Petrilli
>>> 4) Christopher McDonough
>>>
>>> search             result
>>> C                  1,2,3,4
>>> C.J.Withers        1
>>> c.j.Withers        1
>>> withers mcdonough  1,2,4
>>> Chris              2,4
>>> Christo            4
>>>
>>> I think the basic rules are:
>>> - split on whitespace and punctuation (not accentuated characters and the
>>> like ;-)
>>> - index each remaining name part
>>> - when searching, return all records where any of the name parts match
>>> something like:
>>> string.find(name_part,search_expression)
>>>
>>> ...oh yeah, and do it blindingly quickly ;-)
>>>
>>> This would be really useful for the Creator dublin core field and
>>> anywhere you're searching for someone's name. The CMF could benefit from
>>> it and
>>
>>would
>>
>>> eliminate the phrase next to the Creator field which has haunted me from
>>> Squishdot:
>>>
>>> " Note that you must enter their username exactly. "
>>>
>>> cheers,
>>>
>>> Chris
>>>
>>>
>>>
>>> _______________________________________________
>>> Zope-Dev maillist  -  [EMAIL PROTECTED]
>>> http://lists.zope.org/mailman/listinfo/zope-dev
>>> **  No cross posts or HTML encoding!  **
>>> (Related lists -
>>>  http://lists.zope.org/mailman/listinfo/zope-announce
>>>  http://lists.zope.org/mailman/listinfo/zope )
>>
>>_______________________________________________
>>Zope-Dev maillist  -  [EMAIL PROTECTED]
>>http://lists.zope.org/mailman/listinfo/zope-dev
>>**  No cross posts or HTML encoding!  **
>>(Related lists -
>> http://lists.zope.org/mailman/listinfo/zope-announce
>> http://lists.zope.org/mailman/listinfo/zope )

_______________________________________________
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )

Reply via email to