Created
August 13, 2023 09:13
-
-
Save mansha99/95c9c4da898162eb9e02003abb5ab857 to your computer and use it in GitHub Desktop.
Postman collection for Apache Solr steps
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"info": { | |
"_postman_id": "ec150c09-8955-48d4-b682-7d27d09c7a08", | |
"name": "Solr", | |
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json", | |
"_exporter_id": "353871" | |
}, | |
"item": [ | |
{ | |
"name": "01-collection-employee", | |
"request": { | |
"method": "POST", | |
"header": [ | |
{ | |
"key": "Content-Type", | |
"value": "application/json", | |
"type": "text" | |
} | |
], | |
"body": { | |
"mode": "raw", | |
"raw": "{\n\"name\": \"employee\",\n\"numShards\": 1,\n\"replicationFactor\": 1\n}\n" | |
}, | |
"url": { | |
"raw": "http://localhost:8983/api/collections", | |
"protocol": "http", | |
"host": [ | |
"localhost" | |
], | |
"port": "8983", | |
"path": [ | |
"api", | |
"collections" | |
] | |
} | |
}, | |
"response": [] | |
}, | |
{ | |
"name": "02-schema-employee", | |
"request": { | |
"method": "POST", | |
"header": [ | |
{ | |
"key": "Content-Type", | |
"value": "application/json", | |
"type": "text" | |
} | |
], | |
"body": { | |
"mode": "raw", | |
"raw": "{\n\"add-field\": [\n{\"name\": \"name\", \"type\": \"text_general\", \"multiValued\": false},\n{\"name\": \"department\", \"type\": \"string\", \"multiValued\": false},\n{\"name\": \"designation\", \"type\": \"string\",\"multiValued\": false},\n{\"name\": \"experience\", \"type\": \"pint\"}\n]\n}\n" | |
}, | |
"url": { | |
"raw": "http://localhost:8983/api/collections/employee/schema", | |
"protocol": "http", | |
"host": [ | |
"localhost" | |
], | |
"port": "8983", | |
"path": [ | |
"api", | |
"collections", | |
"employee", | |
"schema" | |
] | |
} | |
}, | |
"response": [] | |
}, | |
{ | |
"name": "03-populate-employee", | |
"request": { | |
"method": "POST", | |
"header": [ | |
{ | |
"key": "Content-Type", | |
"value": "application/json", | |
"type": "text" | |
} | |
], | |
"body": { | |
"mode": "raw", | |
"raw": "[\n\n{\n\"id\" : \"emp-001\",\n\"name\" : \"Chris Nathan\",\n\"department\" : \"Dev\",\n\"designation\" : \"Analyst\",\n\"experience\" : 7\n}\n,\n\n{\n\"id\" : \"emp-002\",\n\"name\" : \"Christina \",\n\"department\" : \"Dev\",\n\"designation\" : \"Programmer\",\n\"experience\" : 3\n}\n,\n\n{\n \"id\" : \"emp-003\",\n \"name\" : \"Naresh\",\n \"department\" : \"Marketing\",\n \"designation\" : \"Executive\",\n \"experience\" : 2\n }\n \n]" | |
}, | |
"url": { | |
"raw": "http://localhost:8983/api/collections/employee/update?commit=true", | |
"protocol": "http", | |
"host": [ | |
"localhost" | |
], | |
"port": "8983", | |
"path": [ | |
"api", | |
"collections", | |
"employee", | |
"update" | |
], | |
"query": [ | |
{ | |
"key": "commit", | |
"value": "true" | |
} | |
] | |
} | |
}, | |
"response": [] | |
}, | |
{ | |
"name": "04-employee-commit", | |
"request": { | |
"method": "POST", | |
"header": [ | |
{ | |
"key": "Content-Type", | |
"value": "application/json", | |
"type": "text" | |
} | |
], | |
"body": { | |
"mode": "raw", | |
"raw": "{\"set-property\":{\"updateHandler.autoCommit.maxTime\":15000}}" | |
}, | |
"url": { | |
"raw": "http://localhost:8983/api/collections/employee/config", | |
"protocol": "http", | |
"host": [ | |
"localhost" | |
], | |
"port": "8983", | |
"path": [ | |
"api", | |
"collections", | |
"employee", | |
"config" | |
] | |
} | |
}, | |
"response": [] | |
}, | |
{ | |
"name": "05-q-01", | |
"protocolProfileBehavior": { | |
"disableBodyPruning": true | |
}, | |
"request": { | |
"method": "GET", | |
"header": [], | |
"body": { | |
"mode": "raw", | |
"raw": "" | |
}, | |
"url": { | |
"raw": "http://localhost:8983/solr/employee/query?q=name:Chris", | |
"protocol": "http", | |
"host": [ | |
"localhost" | |
], | |
"port": "8983", | |
"path": [ | |
"solr", | |
"employee", | |
"query" | |
], | |
"query": [ | |
{ | |
"key": "q", | |
"value": "name:Chris" | |
} | |
] | |
} | |
}, | |
"response": [] | |
}, | |
{ | |
"name": "02-q-post", | |
"request": { | |
"method": "POST", | |
"header": [ | |
{ | |
"key": "Content-Type", | |
"value": "application/json", | |
"type": "text" | |
} | |
], | |
"body": { | |
"mode": "raw", | |
"raw": "{\n \"query\" : \"department:Dev\"\n}" | |
}, | |
"url": { | |
"raw": "http://localhost:8983/solr/employee/query", | |
"protocol": "http", | |
"host": [ | |
"localhost" | |
], | |
"port": "8983", | |
"path": [ | |
"solr", | |
"employee", | |
"query" | |
] | |
} | |
}, | |
"response": [] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment