Appendix A. Quick Reference

This chapter is a convenient reference for common search-related request parameters. It is assumed that you have already read the related material in the book and are just looking for something to jog your memory.

You can find an electronic PDF version of this chapter at http://www.solrenterprisesearchserver.com. Having it printed makes it quite convenient.

Note

The third column indicates whether a parameter can be specified only once (single) or multiple times (multi).

Core search

The following parameters are commonly used in most search queries. These are also covered in Chapter 5, Searching:

Parameter

Description

Single/multi

qt=/select

A named request handler.

single

q

The query string. Usually, as entered by an end user.

single

defType=lucene

The query parser for q. The recommended one is edismax (or dismax).

single

fq

A filter query.

multi

start=0

The index into the search results to start returning documents.

single

rows=10

The number of search result document rows to return.

single

fl=*

The field list to retrieve, comma separated. To get scores: *,score

multi

sort=score desc

The sort order. A comma-separated list with asc or desc.

single

wt=xml

The writer type for the response format. One of xml, json, python, php, phps, ruby, javabin, csv, xslt, or velocity.

single

Other parameters are: version=2.2, omitHeader=off, and timeAllowed=-1.

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

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