docs: fix erroneous comment about resulting terms list being sorted

This commit is contained in:
yonik 2017-08-24 11:55:45 -04:00
parent 7760b35645
commit f9cc109286
1 changed files with 1 additions and 1 deletions

View File

@ -613,7 +613,7 @@ public class TermsComponent extends SearchComponent {
continue;
}
// Since splitTerms is already sorted, this array will also be sorted
// Since splitTerms is already sorted, this array will also be sorted. NOTE: this may not be true, it depends on readableToIndexed.
Term[] terms = new Term[splitTerms.length];
for (int i = 0; i < splitTerms.length; i++) {
terms[i] = new Term(field, fieldType.readableToIndexed(splitTerms[i]));