Solr – Enterprise Search Engine Interview Question-Answer Part 2

Q.1 Which among the following is the best fieldtype for a field that needs to be faceted?

       A. int

       B. text

       C. float

       D. string

Ans : text


Q.2 Which component is used to implement a powerful auto-suggestion feature in search application of Solr?

       A. SuggestComponent

       B. MoreLikeThisComponent

       C. SpellCheckComponent

       D. None of the options

Ans : SuggestComponent


Q.3 Where can the system logs for Solr be found on Windows from the Solr install directory?

       A. logs

       B. server/modules/logs

       C. server/core/logs

       D. server/logs

Ans : server/core/logs


Q.4 Which of the following software components traverse the web to collect the information?

       A. Database

       B. Search Interface

       C. Web Crawler

       D. All the options

Ans : Web Crawler


Q.5 Which element in the Solr configuration file solrconfig.xml is used for setting the location of the index data for a core?

       A. indexConfig

       B. directoryFactory

       C. indHandler

       D. dataDir

Ans : indexConfig


Q.6 What is the purpose of Field Analysis in Solr?

       A. It is used to define how fields can be queried and interpreted by Solr

       B. It used to control what Solr does with incoming data when an index is being constructed

       C. It sets the default properties that can be set on a field or that may be inherited by the field

       D. It breaks field data into individual components for processing by a field type handler

Ans : It used to control what Solr does with incoming data when an index is being constructed


Q.7 Which information is specified in field type?

       A. Name of field type

       B. Field attributes

       C. an implementation of class name

       D. All the options

Ans : All the options


Q.8 OCR stands for _____.

       A. optical Character Reading

       B. Optical Character Recording

       C. Optical Character Recognition

       D. Optical Character Representation

Ans : Optical Character Recognition


Q.9 De-duplication can be configured in ______files.

       A. solrconfig.xml and schema.xml

       B. solr.xml

       C. schema.xml

       D. solrconfig.xml

Ans : solrconfig.xml and schema.xml


Q.10 What is the default port for Solr?

       A. 80

       B. 8983

       C. 8900

       D. 3389

Ans : 8983


Q.11 Which command would you use from a Window Command Prompt to stop an Apache Solr background instance that is running on port 8983?

       A. Solr terminate 8983

       B. Solr -f -p 8983

       C. Solr stop -f

       D. Solr stop -p 8983

Ans : Solr stop -p 8983


Q.12 The field options of a field specified using XML attributes are default to false.

       A. True

       B. False

Ans : True


Q.13 Which parameters are required when defining a fieldType with an Apache Solr schema file?

       A. class and name

       B. tokenizer and name

       C. class and analyzer

       D. tokenizer and analyzer

Ans : tokenizer and analyzer


Q.14 Select the default lock type used in solrconfig.xml if nothing is specified.

       A. single

       B. simple

       C. native

Ans : single


Q.15 Solr was created by _________.

       A. Shay Banon

       B. Yonik Seely

       C. Doug Cutting

       D. Stephene

Ans : Yonik Seely


Q.16 Phonetic matching algorithms are used______

       A. To encode tokens so that two different spellings that are pronounced similarly will match

       B. To encode and find similar number

       C. To encode alphanumeric strings

       D. None of the options

Ans : To encode tokens so that two different spellings that are pronounced similarly will match


Q.17 Which of the following is a feature of Apache Solr?

       A. Highly Scalable

       B. Full text search

       C. NoSQL database

       D. Admin Interface

       E. All the options

Ans : All the options


Q.18 Relevance of a document is calculated based on the ______

       A. Field length

       B. Term frequency

       C. Inverse frequency

       D. All the options

Ans : All the options


Q.19 Solr is built on which full text search library?

       A. Postgresql

       B. MYSQL

       C. Sphinx

       D. Apache Lucene

Ans : Apache Lucene


Q.20 Can we define an alternative directory to hold all index data other than default?

       A. True

       B. False

Ans : True


Q.21 A Solr Core can have multiple schemas?

       A. True

       B. False

Ans : True


Q.22 Which statement best describes the fieldType in the Solr Data Model?

       A. It is a mapping for a dynamic field type to a document fields tokenizer used during indexing

       B. It is an overarching definition or configuration targeted at supported fields

       C. It is a configured definition that overrides a Field settings

       D. It is a storage container for supported document types

Ans : It is a mapping for a dynamic field type to a document fields tokenizer used during indexing


Leave a Comment