lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From diegoceccarelli <...@git.apache.org>
Subject [GitHub] lucene-solr pull request #293: spellcheck prefix already contains a trailing...
Date Mon, 01 Jan 2018 12:31:31 GMT
Github user diegoceccarelli commented on a diff in the pull request:

    https://github.com/apache/lucene-solr/pull/293#discussion_r159154912
  
    --- Diff: solr/core/src/java/org/apache/solr/handler/component/SpellCheckComponent.java
---
    @@ -339,7 +339,7 @@ private void addOriginalTermsToResponse(NamedList response, Collection<Token>
or
       protected SolrParams getCustomParams(String dictionary, SolrParams params) {
         ModifiableSolrParams result = new ModifiableSolrParams();
         Iterator<String> iter = params.getParameterNamesIterator();
    -    String prefix = SpellingParams.SPELLCHECK_PREFIX + "." + dictionary + ".";
    +    String prefix = SpellingParams.SPELLCHECK_PREFIX + dictionary + ".";
    --- End diff --
    
    What about checking if dictionary containing the trailing dot in the code? 


---

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


Mime
View raw message