Appendix B. Pop Quiz Answers

Chapter 1, Getting Ready with the Essentials

Pop quiz

Q1

1

True

2

False: While Solr can be integrated with Nutch or other similar tools for web crawling, it does not provide direct site indexing by itself at the moment. It is possible to use the DataImportHandler facility to obtain a limited capability of indexing remote URL, however.

3

True

Q2

1

True: This query will return a list of documents matching all the fields on all the terms.

2

False: This query will return a list of documents matching all the fields named 'documents', on all the terms. Note that a 'documents' fields does not exists in our example.

3

False: This query will search over all the fields for matching on the term 'all'. Note that you cannot use a "match-all" approach on fields, while providing a value for term matching, or you will obtain an error.

Q3

1

False: Solr can be deployed as a WAR inside other standard JEE container, even if Jetty is the suggested container.

2

False: See the previous answer.

3

True: Solr is deployed as a standard Java web Application, by publishing its expanded webroot directory, or by zipping it into a WAR file. The suggested method for a Solr installation is, however, to use the standard Jetty container, and configure it directly.

Q4

1

False: cURL can be used also to send data over HTTP, not only to receive data.

2

True: cURL can be used to send and receive data over HTTP, using standard HTTP methods and also always receiving responses from the remote server.

3

False: cURL can not only be used for sending data but also to receive data.

Q5

1

True

2

False: While it's possible to index database data with Solr, it will expose data on a new service, without a direct interference with the original database.

3

True: Solr can be used as a remote service, it can be wrapped with SolrJ for remote querying, and it can also be used as an embedded Framework, using SolrJ.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.136.18.218