Github user alessandrobenedetti commented on a diff in the pull request:
https://github.com/apache/lucene-solr/pull/398#discussion_r194254789
--- Diff:
lucene/suggest/src/java/org/apache/lucene/search/suggest/analyzing/BlendedInfixSuggester.java
---
@@ -200,7 +201,13 @@ protected FieldType getTextFieldType() {
textDV.advance(fd.doc);
final String text = textDV.binaryValue().utf8ToString();
- long weight = (Long) fd.fields[0];
+
+ NumericDocValues weightDV =
MultiDocValues.getNumericValues(searcher.getIndexReader(), WEIGHT_FIELD_NAME);
--- End diff --
Thank you for your note, It was not the main scope of the bug fix, but It's
a good recommendation so I just contributed the little refactor.
Thanks!
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]