Web / Apache Solr Interview questions
What are the types of Solr request handlers?
A request handler processes a specific type of HTTP request sent to Solr. Common built-in types include:
| Handler | Purpose |
SearchHandler (/select) | Runs queries and returns results |
UpdateRequestHandler (/update) | Adds, updates, deletes documents |
RealTimeGetHandler (/get) | Fetches a document by ID even before a commit |
| AnalysisHandler | Shows how a field's analyzer processes text |
Custom handlers can also be registered in solrconfig.xml, letting teams expose specialized endpoints with preset query defaults - for example, a /products/select handler that always applies a category filter and a fixed set of return fields, so client applications don't have to repeat those parameters on every request.
Each handler is mapped to a Java class in solrconfig.xml, and multiple handlers can share the same underlying class with different default parameters, which is how most "custom" handlers are actually built without writing new code.
More Related questions...