SOLR Interview Questions
SOLR Interview Questions
Q. What is Apache Solr?
It is a standalone full text search server which applications communicate with using XML and HTTP to index documents, or execute searches. It is used to support a rich schema specification that is used to allow for a wide range of flexibility in dealing with different document fields, and has an extensive search plugin API for developing custom search behavior.
Q. Which file contains configuration for data directory?
solrconfig.xml file contains configuration for data directory.
Q. Which file contains definition of the field types and fields of documents?
schema.xml file contains definition of the field types and fields of documents.
Q. What are the features of Apache Solr?
The features of apache solr are –
- Near real-time indexing
- Standards-based open interfaces like XML, JSON and HTTP
- Flexible and adaptable, with XML configuration
- Advanced full-text search
- Linearly scalable, auto index replication, auto failover and recovery
- Comprehensive HTML administration interfaces
Q. What is Apache lucene?
Apache lucene is a full featured, High performance text search engine library which is written in java.
Q. What is request handler?
When a user runs a search in solr, the search query is processed by a request handler. It is a solr plugin that defines the logic to be used when solr processes a request.
Q. What is the advantage of standard query parser?
The advantage of standard query parser is that it is used to enable users to specify very precise queries.
Q. Explain Faceting?
It is the arrangement of search results into categories based on indexed terms.
Q. What is the use of field type?
Field type defines how solr should interpret data in a field and how the field can be queried.
Q. Which information is included in filed type?
A field type includes four types of information –
- The name of field type
- Field attributes
- An implementation class name
- If the field type is TextField , a description of the field analysis for the field type.
Q. Define Dynamic Field?
It is used to allow solr to index fields that you did not explicitly define in the schema.
Q. What is analyzer?
An Analyzer is used to examine text of fields and generates a token stream.
Q. What is the use of tokenizer?
It is used to break up a stream of text into tokens, where each token is a sub sequence of characters in the text.
Q. What is phonetic filter?
This filter is used to create tokens using one of the phonetic encoding algorithms in the org.apache.commons.codec.language package.
Q. What is SolrCloud?
Apache solr includes the ability to set up a cluster of solr servers that combines fault tolerance high availability called SolrCloud.
Q. What is copying field?
It is used to describe how to populate fields with data copied from another field.
Q. What is Highlighting?
It is used to give the detailed information about Solr’s highlighting utilities.
Q. Give the name of different types of highlighters?
There are 3 highlighters:-
- FastVector Highlighter
- Standard Highlighter
- Postings Highlighter
Q. What is the use of stats.field?
It is used to generate statistics over the results of arbitrary numeric functions.
Q. To see how to use the bin/solr script which command is used?
Execute $ bin/solr –helpto see how to use the bin/solr script.
Q. Which syntax is used to stop solr?
$ bin/solr stop -p 8983 is used to stop solr.
Q. Which command is used to start solr in foreground?
$ bin/solr start –f is used to start solr in foreground.
Q. To Check if Solr is running which syntax is used?
$ bin/solr status is used to check solr running status.
Q. To start the server which syntax is used?
$ bin/solr start is used to start the server.
Q. How to shut down apache solr?
To shut down Solr from the terminal where you launched Solr,then click Ctrl+C.
Q. What data is specified by Schema?
Schema declares –
- How to index and search each field
- What kinds of fields there are
- Which fields are required
- Which field should be used as the unique/primary key
Q. Give the name of basic Field types in Solr?
Basic field type in solr is –
Q. How to install solr?
It has 3 steps:-
1. Server-related files, e.g. Tomcat or start.jar (Jetty)
2. Solr webapp as a .war
3. Solr Home which comprises the data directory and configuration files
Q. What are the important configuration files of solr?
There are 2 most important configuration files of solr:-
Q. What are the most common elements in solrconfig.xml?
The most common elements in solrconfig.xml are –
1. search components
2. cache parameters
3. data directory location
4. request handlers