Friday , March 29 2024

Solr 101 Cognitive class Exam Answers:-

  Course Name:- Solr 101

  Module 1 :-Search Engines

Question  1.Which of the following statements is NOT correct?

  • Solr is written in C# and built around the Apache Lucene search engine.
  • Solr is a web application running on its own server.
  • Solr uses an inverted index that maps tokens to locations.
  • All of the above.
  • None of the above.

Question 2.Queries can be analyzed before they are submitted to Solr. True or false?

  • False
  • True

Question 3. Which of the following options is NOT correct?

  • You don’t explicitly have to tell Solr how to read csv files.
  • The index in Solr is composed of many documents.
  • Each document is composed of many fields.
  • Solr handles unstructured documents automatically.
  • None of the above.

Module 2:- Configuring and Adding Documents to solr

Question 1.Which file specifies how documents are organized in the index?

  • solrconfig.xml
  • schema.json
  • schema.dat
  • schema.xml
  • None of the above.

Question 2.Fields must be indexed and stored. True or false?

  • False
  • True

Question 3. Which of the following methods can be used to add a document to Solr?

  • Use a client API such as SolrJ.
  • Use a data import handler.
  • Create a Solr Cell to extract text from formats like PDFs and Word documents.
  • Directly make a request to the update URL.
  • All of the above

Module 3:-Analyzers Queries

Question 1.Which of the following statements is NOT correct?

  • StopFilter removes generally useless words such as “the”, “at”, “and”.
  • Analyzers consist of tokenizers and filters.
  • StandardTokenizer delimits by whitespace and punctuation, except for periods not followed by whitespace.
  • Tokenizers and filters can only be chained together in a specific order.
  • None of the above.

Question 2.Lowercase filter converts all letters in each token to lowercase without touching non-letters. True or false?

  • False
  • True

Question 3.Which of the following statements is NOT true?

  • Square brackets make the range exclusive, and curly braces are inclusive.
  • You can make a query negative by adding a minus symbol prefix.
  • You can match multiple values against the same field in a single term.
  • If the search string is an asterisk, you won’t necessarily get every document.
  • All of the above.

Module 4:-Solrj and Customization

Question 1. Which of the following statements is NOT correct?

  • SolrJ is the Java client API for Solr.
  • SolrJ is not as powerful as update processors and request handlers.
  • SolrJ does not manage the configuration of your server.
  • SolrJ eliminates the need to manually construct HTTP requests and handle responses.
  • All of the above.

Question 2. Which location does NOT contain SolrJ dependencies by default?

  • solr/example/dist
  • solr/dist/solrj-lib
  • solr/example/lib/ext
  • solr/dist
  • None of the above.

Question 3. SolrCloud is managed by Apache Zookeeper. True or false?

  • False
  • True

Solr 101  cognitive class final  Exam Answers:-

Question 1. The data model in Solr consists of (select all that apply):

  • Index, Document, Field
  • Index, Row, Column
  • Database, Storage, Data
  • None of the above
  • All of the above

Question 2. You have the following field in one of your documents:

  • title : “Game of Thrones”The field is defined as follows:
  • < field name=”title” type=”string” indexed=”true” /
  • Which of the following query strings would match the title?
  • “game of thrones”“Thrones”“Game of Thrones”
  • All of the above

Question 3.Where are document fields defined?

  • Solr web console
  • schema.xml
  • solrconfig.xml
  • None of the above
  • All of the above

Question 4.The first step of many Solr projects is to make a copy of the Solr example directory. True or false?

  • False
  • True

Question 5.The embedded zookeeper server available with Solr is suitable for production. True or false?

  • False
  • True

Question 6. The best way to index a SQL database is (select all that apply):

  • Data Import Handler
  • Apache Tika Extractor
  • SolrJ
  • Manually
  • All of the above

Question 7. If you want the “title” field of your documents to be searchable, which attribute is necessary?

  • indexed=”false
  • stored=”false
  • indexed=”true
  • stored=”true
  • None of the above

Question 8. Where do you specify the set of analyzers that a field will use?

  • solrconfig.xml
  • The fieldType in schema.xml
  • The field in schema.xml
  • None of the above
  • All of the above

Question 9. Solr is a web server that communicates via HTTP. True or false?

  • false
  • True

Question 10.How would you configure Solr to automatically generate an “id” field for each document?

  • This is not possible
  • Add an Update Request Processor to solrconfig.xml
  • No configuration needed – Solr will fill in missing fields by default
  • Set primaryKey=”true” in the document field
  • None of the above

Question 11. Which of the following options is correct? (select all that apply)

  • Solr handles unstructured documents automatically.
  • The index in Solr is composed of many documents.
  • Each document is composed of many fields.
  • You don’t explicitly have to tell Solr how to read csv files.
  • All of the above

Question 12. Which of the following methods cannot be used to add a document to Solr?

  • Use a client API such as SolrJ.
  • Use a data import handler.
  • Create a Solr Cell to extract text from formats like PDFs and Word documents.
  • Directly make a request to the update URL.
  • None of the above

Question 13. Which files do not specify how documents are organized in the index? (select all that apply)

  • schema.xml
  • schema.json
  • schema.dat
  • solrconfig.xml
  • config.xml

Question 14. Which of the following statements are correct? (select all that apply)

  • Tokenizers and filters can only be chained together in a specific order.
  • Analyzers consist of tokenizers and filters.
  • StandardTokenizer delimits by whitespace and punctuation, except for periods not followed by whitespace.
  • StopFilter removes generally useless words such as “the”, “at”, “and”.
  • All of the above

Question 15.Which locations contain SolrJ dependencies by default? (select all that apply)

  • solr/dist
  • solr/dist/solrj-lib
  • solr/example/lib/ext
  • solr/example/dist
  • All of the above
  • =-

About Machine Learning

Check Also

Python for Data Science Cognitive Class Exam Answers:-

Course Name:- Python for Data Science Module 1. Python Basics Question 1. What is the …

Leave a Reply

Your email address will not be published. Required fields are marked *