SOLR-6657: DocumentDictionaryFactory requires weightField to be mandatory, but it shouldn't

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1663525 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Erick Erickson 2015-03-03 04:53:41 +00:00
parent 1510f69303
commit 3ae3d32bcb
2 changed files with 4 additions and 4 deletions

View File

@ -175,6 +175,9 @@ Bug Fixes
* SOLR-7171: BaseDistributedSearchTestCase now clones getSolrHome() for each subclass,
and consistently uses getSolrXml(). (hossman)
* SOLR-6657: DocumentDictionaryFactory requires weightField to be mandatory, but it shouldn't
(Erick Erickson)
Optimizations
----------------------

View File

@ -46,10 +46,7 @@ public class DocumentDictionaryFactory extends DictionaryFactory {
if (field == null) {
throw new IllegalArgumentException(FIELD + " is a mandatory parameter");
}
if (weightField == null) {
throw new IllegalArgumentException(WEIGHT_FIELD + " is a mandatory parameter");
}
return new DocumentDictionary(searcher.getIndexReader(), field, weightField, payloadField);
}