I suppose another option would be to use one combined field with an email format like this:
Tony Garnock-Jones <to...@leastfixedpoint.com> "search-terms" might need some special attention though. You might be able to list two author terms, like this: "author:tonygarnockjo...@gmail.com" : true, "author:Tony Garnock-Jones" : true, If the author has selected not to make his or her email public, then that information would be stripped from the json too. I'm speculating here, because I have on idea where and how all this code is used. I think it would pay to be consistent with the json and the database in terms of fields and names though. If I were building it from scratch I would have separate fields for author name and email. On Wed, Feb 24, 2021 at 04:09:42PM +0100, Tony Garnock-Jones wrote: > Hi Roger, > > On Wed, 24 Feb 2021 at 15:55, Roger Keays <rac...@rogerkeays.com> wrote: > > > I was just thinking along the lines of adding a "name" field to the table > > with the user/login data. If it is set, then it is displayed instead of the > > email. You should be able to search by this field too of course. > > > > That sounds sensible. Thanks! > > The email fields are also currently included in the JSON metadata for each > package. For example, here's the (abbreviated) stanza for one of my > packages in the catalog's https://pkgs.racket-lang.org/pkgs-all.json.gz > file: > > "ansi" : { > "author" : "tonygarnockjo...@gmail.com", > "authors" : [ > "tonygarnockjo...@gmail.com" > ], > "build" : { ... }, > "checksum" : "c14081de59bc7273f1f9088a51d6d9c202b2b9d0", > "description" : "ANSI and VT10x escape sequences for Racket.", > "modules" : [ ... ], > "name" : "ansi", > "search-terms" : { > ":build-success:" : true, > "author:tonygarnockjo...@gmail.com" : true, > "ring:1" : true, > "terminal" : true > }, > "source" : "github://github.com/tonyg/racket-ansi/master", > "tags" : ["terminal"], > "versions" : { > "default" : { > "checksum" : "c14081de59bc7273f1f9088a51d6d9c202b2b9d0", > "source" : "github://github.com/tonyg/racket-ansi/master", > "source_url" : "http://github.com/tonyg/racket-ansi/tree/master" > } > } > }, > > There's also an s-expression equivalent. > > Do you have any thoughts on what, if anything, should be done about these > files? > > Regards, > Tony -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/racket-users/sigid.068967fa01.20210224171444.GA6219%40papaya.papaya.