Dear Wiki user, You have subscribed to a wiki page or wiki category on "Solr Wiki" for change notification.
The "TermsComponent" page has been changed by Uri Boness. http://wiki.apache.org/solr/TermsComponent?action=diff&rev1=17&rev2=18 -------------------------------------------------- * terms.mincount=<Integer> - Optional. The minimum doc frequency to return in order to be included. Results are '''inclusive''' of the mincount (i.e. >= mincount) * terms.maxcount=<Integer> - Optional. The maximum doc frequency. Default is -1 to have no upper bound. Results are '''inclusive''' of the maxcount (i.e. <= maxcount) * terms.prefix={String} - Optional. Restrict matches to terms that start with the prefix. + * terms.regex={String} - Optional. Restrict matches to terms that match the regular expression. <!> [[Solr1.5]] + * terms.regex.flag={case_insensitive|comments|multiline|literal|dotall|unicode_case|canon_eq|unix_lines} - Optional. Flags to be used when evaluating the regular expression defined in the "terms.regex" parameter (see http://java.sun.com/j2se/1.5.0/docs/api/java/util/regex/Pattern.html#compile%28java.lang.String,%20int%29 fore more details). This parameter can be defined multiple times (each time with different flag) <!> [[Solr1.5]] * terms.limit={integer} - The maximum number of terms to return. The default is 10. If < 0, then include all terms. * terms.upper={The upper bound term} - The term to stop at. Either upper or terms.limit must be set. * terms.upper.incl={true|false} - Include the upper bound term in the result set. Default is false. @@ -142, +144 @@ "ati",1]]} }}} + == Case insensitive Auto-Suggest == + + To use in auto-suggest, add what the user has typed as a prefix: + + URL: + {{{ + http://localhost:8983/solr/terms?terms.fl=name&terms.regex=At.*&terms.regex.flag=case_insensitive + }}} + + Result: + {{{ + <?xml version="1.0" encoding="UTF-8"?> + <response> + + <lst name="responseHeader"> + <int name="status">0</int> + <int name="QTime">120</int> + </lst> + <lst name="terms"> + <lst name="name"> + <int name="ata">5</int> + <int name="ati">5</int> + </lst> + </lst> + </response> + }}} +
