yes, i did so. the ':' is invalid for emails, so it's easy to decide
whether to strip/prepend or not

On Thu, 21 Feb 2013 11:14:27 +0000
Robert Newson <[email protected]> wrote:

> correct, you can't start a doc id with _. It seems simple enough to
> solve this by prefixing "email:" to your ids.
> 
> B.
> 
> On 21 February 2013 11:12, Vincenzo Scolaro
> <[email protected]> wrote:
> > I had the same need and I did it this way
> > id = md5 (email)
> >
> > What do you think?
> >
> > Vincenzo
> >
> >
> > 2013/2/21 svilen <[email protected]>
> >
> >> hi
> >> the docs state that anything can be put in _id, except that it
> >> can't start with "_" underscore.
> >>
> >> still, the _ is valid character for starting email address...
> >> effectively meaning that in general, e-mail addresses cannot be
> >> used as id (the only enforced unique thing).. and has to be stored
> >> as a field. or prepended with something non-underscore.
> >>
> >> correct?
> >>
> >> svil
> >>

Reply via email to