Book Image

Scaling Big Data with Hadoop and Solr, Second Edition

By : Hrishikesh Vijay Karambelkar
Book Image

Scaling Big Data with Hadoop and Solr, Second Edition

By: Hrishikesh Vijay Karambelkar

Overview of this book

Table of Contents (13 chapters)
Scaling Big Data with Hadoop and Solr Second Edition
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Querying for information in Solr


We have already seen how Apache Solr effectively uses different request handlers to provide consumers with extensive ways of getting search results. Each Request Handler uses its own query parser, which extracts the parameters and their values from the query string and forms Lucene Query Objects. The standard query parser allows greater precision over search data; DisMaxQueryParser and Extended DisMaxQueryParser provide a Google-like searching syntax while searching. Depending upon which request handler called, the query syntax is changed. Let's look at some of the important terms:

Term

Meaning

q?<string>

The query string <String> can support wildcards (*:*); for example, title:Scaling*

fl=id,book-name

The field list that a search response will return

sort=author asc

Results/facets to be sorted by authors in an ascending order

price[* TO 100]&rows=10&start=5

Looks for price between 0 and 100; limits the result to 10 rows...