lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SOLR-7865) lookup method implemented in BlendedInfixLookupFactory does not respect suggest.count
Date Mon, 04 Jan 2016 10:17:39 GMT

    [ https://issues.apache.org/jira/browse/SOLR-7865?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15080932#comment-15080932
] 

ASF subversion and git services commented on SOLR-7865:
-------------------------------------------------------

Commit 1722825 from [~anshumg] in branch 'dev/trunk'
[ https://svn.apache.org/r1722825 ]

SOLR-7865: Adding change log entry for 5.3.2 release

> lookup method implemented in BlendedInfixLookupFactory does not respect suggest.count
> -------------------------------------------------------------------------------------
>
>                 Key: SOLR-7865
>                 URL: https://issues.apache.org/jira/browse/SOLR-7865
>             Project: Solr
>          Issue Type: Bug
>          Components: Suggester
>    Affects Versions: 5.2.1
>            Reporter: Arcadius Ahouansou
>            Assignee: Michael McCandless
>             Fix For: 5.5, Trunk
>
>         Attachments: LUCENE_7865.patch
>
>
> The following test failes in the TestBlendedInfixSuggestions.java:
> This is mainly because {code}num * numFactor{code} 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.
> {code}
>   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']"
>     );
>   }
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message