This is an automated email from the ASF dual-hosted git repository.
deepak pushed a commit to branch trunk
in repository
https://gitbox.apache.org/repos/asf/ofbiz-plugins.gitThe following commit(s) were added to refs/heads/trunk by this push:
new 2c1696e Updated code to fix no suitable method found for create(int) error (OFBIZ-12100)
2c1696e is described below
commit 2c1696e827adcdc6bd12fa4fcd718e3d53478b4d
Author: Deepak Dixit <
[hidden email]>
AuthorDate: Mon Jan 4 14:49:27 2021 +0530
Updated code to fix no suitable method found for create(int) error (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 = []