Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Mastering Apache Solr 7.x

You're reading from  Mastering Apache Solr 7.x

Product type Book
Published in Feb 2018
Publisher Packt
ISBN-13 9781788837385
Pages 308 pages
Edition 1st Edition
Languages
Authors (3):
Sandeep Nair Sandeep Nair
Profile icon Sandeep Nair
Chintan Mehta Chintan Mehta
Profile icon Chintan Mehta
Dharmesh Vasoya Dharmesh Vasoya
Profile icon Dharmesh Vasoya
View More author details

Mastering Schema API


Schema API is the one-stop shop for most operations on your schema. It provides a REST-like HTTP API for doing all these operations.

You can read, write, or delete dynamic fields, fields, copy field rules, and field types. 

Note

Do not manually write any changes into the managed-schema file yourself. This will work only as long as you don't use Schema API. If you use Schema API by mistake, all your changes might be overwritten. So, it is highly recommend that you leave your managed-schema file alone.

The response of the API call is of either JSON or XML format. 

Assuming that you are using the gettingstarted collection, the base address of API will be http://localhost:8983/solr/gettingstarted.

Note

Always reindex once you use Schema API for modifications. Only then will the changes that you have applied to the schema be reflected for existing documents that are already indexed.

Schema API in detail

Let's see some of the important schema endpoints. We will do all the examples...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}