← All posts

Solr collection runbook

solrsearch

Creating a collection
Run below commands in powershell

v1 — GET

Invoke-RestMethod -Method GET -Uri "http://localhost:8983/solr/admin/collections?action=CREATE&name=ns_solr_index_v2&numShards=1&replicationFactor=1&collection.configName=ns_solr_index&wt=json"

v2 — POST

$body = @{ name = "ns_solr_index_v2"; numShards = 1; replicationFactor = 1; config = "ns_solr_index" } | ConvertTo-Json
Invoke-RestMethod -Method POST -Uri "http://localhost:8983/api/collections" -ContentType "application/json" -Body $body
1
Min read
53
Words
1
Topic
7
Views
today
Published
today
Updated