mirror of https://github.com/apache/lucene.git
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:
parent
1510f69303
commit
3ae3d32bcb
|
@ -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
|
||||
----------------------
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue