[ 
https://issues.apache.org/jira/browse/SOLR-6233?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14108633#comment-14108633
 ] 

Steve Davids commented on SOLR-6233:
------------------------------------

One other note, it looks like you created your own Json parser to provide an 
xpath-like experience, there is a library that I have used before which is 
great named JsonPath (https://code.google.com/p/json-path/). Not sure if this 
specific class warrants bringing in that package but if we start seeing a 
higher need for similar mechanisms we may want to consider pulling it in since 
it does provide a much readable experience.

> Provide basic command line tools for checking Solr status and health.
> ---------------------------------------------------------------------
>
>                 Key: SOLR-6233
>                 URL: https://issues.apache.org/jira/browse/SOLR-6233
>             Project: Solr
>          Issue Type: Improvement
>            Reporter: Timothy Potter
>            Assignee: Timothy Potter
>            Priority: Minor
>             Fix For: 5.0, 4.10
>
>         Attachments: SOLR-6233-minor-refactor.patch
>
>
> As part of the start script development work SOLR-3617, example restructuring 
> SOLR-3619, and the overall curb appeal work SOLR-4430, I'd like to have an 
> option on the SystemInfoHandler that gives a shorter, well formatted JSON 
> synopsis of essential information. I know "essential" is vague ;-) but right 
> now using curl to http://host:port/solr/admin/info/system?wt=json gives too 
> much information when I just want a synopsis of a Solr server. 
> Maybe something like &overview=true?
> Result would be:
> {noformat}
> {
>   "address": "http://localhost:8983/solr";,
>   "mode": "solrcloud",
>   "zookeeper": "localhost:2181/foo",
>   "uptime": "2 days, 3 hours, 4 minutes, 5 seconds",
>   "version": "5.0-SNAPSHOT",
>   "status": "healthy",
>   "memory": "4.2g of 6g"
> }
> {noformat}
> Now of course, one may argue all this information can be easily parsed from 
> the JSON but consider cross-platform command-line tools that don't have 
> immediate access to a JSON parser, such as the bin/solr start script.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to