You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Alexandre Rafalovitch (JIRA)" <ji...@apache.org> on 2018/07/20 02:28:00 UTC

[jira] [Resolved] (SOLR-12553) SignificantTermsQParserPlugin ignores local params

     [ https://issues.apache.org/jira/browse/SOLR-12553?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alexandre Rafalovitch resolved SOLR-12553.
------------------------------------------
       Resolution: Resolved
    Fix Version/s: 7.5

getParam did not actually have a version that supported defaults. So, for now, I've added this 3-line code in this file only. Does not seem like there is a lot of demand for it in other places.

> SignificantTermsQParserPlugin ignores local params
> --------------------------------------------------
>
>                 Key: SOLR-12553
>                 URL: https://issues.apache.org/jira/browse/SOLR-12553
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: query parsers
>    Affects Versions: 7.4
>            Reporter: Alexandre Rafalovitch
>            Assignee: Alexandre Rafalovitch
>            Priority: Major
>             Fix For: 7.5
>
>         Attachments: SOLR-12553.patch
>
>
> _SignificantTermsQParserPlugin_ can take a number of parameters (field, numTerms, minTermLength, etc). However, only _field_ parameter can be local or global. The rest of parameters can only be global, which does not make sense. 
> The fix is to use _getParam()_ method consistently when getting the parameters.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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