mirror of https://github.com/apache/lucene.git
LUCENE-2142: don't check if term count exceeds doc count in getStringIndex
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@889579 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
f975b84b16
commit
6ebcc95ea0
|
@ -42,6 +42,9 @@ Bug fixes
|
|||
|
||||
* LUCENE-2132: Fix the demo result.jsp to use QueryParser with a
|
||||
Version argument. (Brian Li via Robert Muir)
|
||||
|
||||
* LUCENE-2142: FieldCacheImpl.getStringIndex no longer throws an
|
||||
exception when term count exceeds doc count. (Mike McCandless)
|
||||
|
||||
New features
|
||||
|
||||
|
|
|
@ -624,10 +624,6 @@ class FieldCacheImpl implements FieldCache {
|
|||
if (term==null || term.field() != field) break;
|
||||
|
||||
// store term text
|
||||
// we expect that there is at most one term per document
|
||||
if (t >= mterms.length) throw new RuntimeException ("there are more terms than " +
|
||||
"documents in field \"" + field + "\", but it's impossible to sort on " +
|
||||
"tokenized fields");
|
||||
mterms[t] = term.text();
|
||||
|
||||
termDocs.seek (termEnum);
|
||||
|
|
Loading…
Reference in New Issue