[aur-dev] JSON - search options

eliott eliott at cactuswax.net
Fri Apr 11 03:56:50 EDT 2008


On 4/5/08, Loui <louipc.ist at gmail.com> wrote:
> On Sat, 5 Apr 2008 12:33:15 +0200
>
> Piotr Husiatyński <phusiatynski at gmail.com> wrote:
>
>
> > 3 is ok, becouse of lua, abs, git and many other names. But right now, I can
>  > do `aur search a` and the result is 8130 names.
>  > Or searching with short words should be allowed, but the result has to be cut
>  > to smaller amount of data. You can search giving the single char, but you'll
>  > get only 50 first names.
>  >
>  > {
>  >     "type" : "search" ,
>  >     "results":ReturnData,
>  >     "cut" : ("yes"|"no"),
>  > }
>
>
> This is a good idea, but instead of cut being boolean I would make it
>  an integer. Zero (or less) would mean no cut and anything larger would
>  mean cut at that number.

Seems like a bad idea to me.


More information about the aur-dev mailing list