11.05.2016 Views

Apache Solr Reference Guide Covering Apache Solr 6.0

21SiXmO

21SiXmO

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

terms.regex.flag No null Defines a Java regex flag to use when evaluating the regular<br />

expression defined with terms.regex. See http://docs.oracle.com/ja<br />

vase/tutorial/essential/regex/pattern.html for details of each flag. Valid<br />

options are:<br />

case_insensitive<br />

comments<br />

multiline<br />

literal<br />

dotall<br />

unicode_case<br />

canon_eq<br />

unix_lines<br />

Example: terms.regex.flag=case_insensitive<br />

terms.sort No count Defines how to sort the terms returned. Valid options are count,<br />

which sorts by the term frequency, with the highest term frequency<br />

first, or index, which sorts in index order.<br />

Example: terms.sort=index<br />

terms.upper No null Specifies the term to stop at. Although this parameter is not required,<br />

either this parameter or terms.limit must be defined.<br />

Example: terms.upper=plum<br />

terms.upper.incl No false If set to true, the upper bound term is included in the result set. The<br />

default is false.<br />

Example: terms.upper.incl=true<br />

The output is a list of the terms and their document frequency values. See below for examples.<br />

Examples<br />

All of the following sample queries work with <strong>Solr</strong>'s " bin/solr -e techproducts" example.<br />

Get Top 10 Terms<br />

This query requests the first ten terms in the name field: http://localhost:8983/solr/techproducts/t<br />

erms?terms.fl=name<br />

Results:<br />

<strong>Apache</strong> <strong>Solr</strong> <strong>Reference</strong> <strong>Guide</strong> <strong>6.0</strong><br />

380

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!