Maurits van Rees <[email protected]>
writes:

> Hi,
>
> This is my first email to the remember mailing list.  I will be using
> membrane and remember (both trunk) in a client project.
>
> I was wondering: getEmail is now a ZCTextIndex.  This means that when
> asking brain.getEmail I get a normal string like expected.  But in the
> index this is stored as a list, for example:
> ['joe', 'example', 'org']
>
> Using a FieldIndex seems more logical to me.
>
> Then again, searching for 
> membrane_tool.searchResults(getEmail='[email protected]')
> returns the expected result just fine.
>
> Hm, but when the email address of the member is actually
> [email protected] this also gets returned in the search results.
>
> When using a FieldIndex you only get a result when it exactly matches
> the search term.  (Searching for '*[email protected]*' does not help
> either.)
>
>
> Come to think of it: getting not-exact matches like with the
> ZCTextIndex can be good: getting a list of all users with email ending
> with example.org can be handy.  Is this the reason why it is a
> ZCTextIndex?
>
> I guess it is, which answers my question. Can you tell I am typing
> this email and figuring some stuff out at the same time? :-)  A
> confirmation of my guess would be good though.
>
>
> In my use case a FieldIndex would be better, as we want to use the
> email as login name; reminds me of a plip I am working on. :-) There
> an exact match is wanted, at least in the case of logging in a user.
> Of course I can search for [email protected] and in the results look for
> an exact match.

This matter being historical in nature, I'd like to get Rob's quick
reflection on the matter.  Rob?

And while you're at it, I don't suppose you can give a quick review of
the larger matter of exact matched vs searching in the membrane_tool
catalog?  Have there been previous discussions I should get up to speed
on as maintainer?  If so, I don't suppose you can help with links or any
pointers to help get me there faster?

Thanks!
Ross



--
Archive: 
http://www.coactivate.org/projects/remember/lists/remember/archive/2009/09/1252025315492
To unsubscribe send an email with subject "unsubscribe" to 
[email protected].  Please contact 
[email protected] for questions.

Reply via email to