lucene 4: convert script term to string
This commit is contained in:
parent
74464f9f99
commit
cfbd17992a
|
@ -200,7 +200,8 @@ public class FieldsTermsStringFacetCollector extends AbstractFacetCollector {
|
|||
}
|
||||
if (script != null) {
|
||||
script.setNextDocId(docId);
|
||||
script.setNextVar("term", value);
|
||||
// LUCENE 4 UPGRADE: needs optimization
|
||||
script.setNextVar("term", value.utf8ToString());
|
||||
Object scriptValue = script.run();
|
||||
if (scriptValue == null) {
|
||||
return;
|
||||
|
|
|
@ -203,7 +203,8 @@ public class TermsStringFacetCollector extends AbstractFacetCollector {
|
|||
}
|
||||
if (script != null) {
|
||||
script.setNextDocId(docId);
|
||||
script.setNextVar("term", value);
|
||||
// LUCENE 4 UPGRADE: needs optimization
|
||||
script.setNextVar("term", value.utf8ToString());
|
||||
Object scriptValue = script.run();
|
||||
if (scriptValue == null) {
|
||||
return;
|
||||
|
|
Loading…
Reference in New Issue