Curious... Since JSON and ES do not support upper case, Would this possibly cause some confusion about bits/Bytes and milli/Mega? Should it be assumed therefor that ES never supports bits and milli? That the lower case abbreviations will always apply to the normally capitalized measures Bytes and Mega? Thx, Tony
On Tuesday, February 18, 2014 1:26:06 PM UTC-8, Tony Su wrote: > Thx for the complete answer. > > Tony > > > > On Tuesday, February 18, 2014 11:44:22 AM UTC-8, InquiringMind wrote: > >> Tony, >> >> (1) Your first question seems to be about the curl command. If so, then >> it follows shell script rules. In most Unix shell scripts, double-quotes >> preserve spaces and such, but allow for variable substitution. Sngle-quotes >> also preserve spaces but do not allow variable substitution and preserve >> all characters as-is. Example: >> >> export FIELD=_all >> >> curl -XGET "http://localhost:9200/$FIELD/_mapping" is converted by the >> shell to: curl -XGET http://localhost:9200/_all/_mapping >> >> curl -XGET 'http://localhost:9200/$FIELD/_mapping' is converted by the >> shell to: curl -XGET http://localhost:9200/$FIELD/_mapping >> >> So single quotes are usually preferred so that the & and ? characters in >> URL parameter lists are not interpreted as shell characters. But if you >> want to parameterize a curl command, you may need to use double-quotes for >> parts, and single-quotes for the other parts. This is all standard shell >> programming. >> >> (2) Camel case is OK for hostnames because hostnames are typically >> insensitive. But JSON and ES are case-sensitive. >> >> (3) This is a JSON standard. {"field":"name"} and { "field" : "name" >> } are the same, but one or the other is prettier. >> >> Brian >> > -- You received this message because you are subscribed to the Google Groups "elasticsearch" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/44225489-afe7-41f0-b9a9-f0cc7d432205%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
