You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Noble Paul (JIRA)" <ji...@apache.org> on 2017/12/06 09:30:00 UTC

[jira] [Updated] (SOLR-11648) Create a web UI to display and execute suggestions

     [ https://issues.apache.org/jira/browse/SOLR-11648?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Noble Paul updated SOLR-11648:
------------------------------
    Description: 
Steps to show suggestions

{code}
bin/solr start -e cloud

#give the following inputs for prompts
Please provide a name for your new collection: [gettingstarted] 
mycoll
How many shards would you like to split mycoll into? [2]
4
How many replicas per shard would you like to create? [2] 
2

#run the following command so that there are violating replicas
curl http://localhost:8983/api/cluster/autoscaling -H 'Content-type:application/json' -d '{
"set-cluster-policy": [
  {"replica": "0", "shard": "#EACH", "port": 7574}
  ]
}'
#hit the suggestions end point at the url
http://localhost:8983/api/cluster/autoscaling/suggestions
{code}

add an entry to the sidebar as follows
!sidebar.jpg!


use the output of the suggestions API to map to the table data
!suggestions_table.jpg!


  was:
Steps to show suggestions

{code}
bin/solr start -e cloud

#give the following inputs for prompts
Please provide a name for your new collection: [gettingstarted] 
mycoll
How many shards would you like to split mycoll into? [2]
4
How many replicas per shard would you like to create? [2] 
2

#run the following command so that there are violating replicas
curl http://localhost:8983/api/cluster/autoscaling -H 'Content-type:application/json' -d{
"set-cluster-policy": [
  {"replica": "0", "shard": "#EACH", "port": 7574}
  ]
}
#hit the suggestions end point at the url
http://localhost:8983/api/cluster/autoscaling/suggestions
{code}

add an entry to the sidebar as follows
!sidebar.jpg!


use the output of the suggestions API to map to the table data
!suggestions_table.jpg!



> Create a web UI to display and execute suggestions
> --------------------------------------------------
>
>                 Key: SOLR-11648
>                 URL: https://issues.apache.org/jira/browse/SOLR-11648
>             Project: Solr
>          Issue Type: Sub-task
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: AutoScaling
>            Reporter: Noble Paul
>         Attachments: screen1.png, screen2.png, screen3.png, screen4.png, sidebar.jpg, suggestions_table.jpg, suggestions_table.jpg
>
>
> Steps to show suggestions
> {code}
> bin/solr start -e cloud
> #give the following inputs for prompts
> Please provide a name for your new collection: [gettingstarted] 
> mycoll
> How many shards would you like to split mycoll into? [2]
> 4
> How many replicas per shard would you like to create? [2] 
> 2
> #run the following command so that there are violating replicas
> curl http://localhost:8983/api/cluster/autoscaling -H 'Content-type:application/json' -d '{
> "set-cluster-policy": [
>   {"replica": "0", "shard": "#EACH", "port": 7574}
>   ]
> }'
> #hit the suggestions end point at the url
> http://localhost:8983/api/cluster/autoscaling/suggestions
> {code}
> add an entry to the sidebar as follows
> !sidebar.jpg!
> use the output of the suggestions API to map to the table data
> !suggestions_table.jpg!



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

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