Description
The following test failes in the TestBlendedInfixSuggestions.java:
This is mainly because
num * numFactor
get called multiple times from
https://github.com/apache/lucene-solr/blob/trunk/solr/core/src/java/org/apache/solr/spelling/suggest/fst/BlendedInfixLookupFactory.java#L118
The test is expecting count=1 but we get all 3 docs out.
public void testSuggestCount() { assertQ(req("qt", URI, "q", "the", SuggesterParams.SUGGEST_COUNT, "1", SuggesterParams.SUGGEST_DICT, "blended_infix_suggest_linear"), "//lst[@name='suggest']/lst[@name='blended_infix_suggest_linear']/lst[@name='the']/int[@name='numFound'][.='1']" ); }
Attachments
Attachments
Issue Links
- is related to
-
LUCENE-6004 Highlighting AnalyzingInfixSuggester skips non-highlighted key
- Closed