This is an automated email from the ASF dual-hosted git repository.
deepak pushed a commit to branch release18.12
in repository
https://gitbox.apache.org/repos/asf/ofbiz-plugins.gitThe following commit(s) were added to refs/heads/release18.12 by this push:
new e897ffc Updated code as per lucene dependency update (OFBIZ-12100)
e897ffc is described below
commit e897ffc7ce378f557ef2d941c5ec9e14babfdb11
Author: Deepak Dixit <
[hidden email]>
AuthorDate: Mon Jan 4 14:42:10 2021 +0530
Updated code as per lucene dependency update (OFBIZ-12100)
---
lucene/groovyScripts/content/SearchProducts.groovy | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lucene/groovyScripts/content/SearchProducts.groovy b/lucene/groovyScripts/content/SearchProducts.groovy
index 6ae4a9c..656c83f 100644
--- a/lucene/groovyScripts/content/SearchProducts.groovy
+++ b/lucene/groovyScripts/content/SearchProducts.groovy
@@ -57,7 +57,7 @@ if (parameters.luceneQuery) {
}
combQuery.add(query, BooleanClause.Occur.MUST)
- TopScoreDocCollector collector = TopScoreDocCollector.create(100) // defaulting to 100 results
+ TopScoreDocCollector collector = TopScoreDocCollector.create(100, 100) // defaulting to 100 results
searcher.search(combQuery, collector)
ScoreDoc[] hits = collector.topDocs().scoreDocs
productList = []