You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by diegoceccarelli <gi...@git.apache.org> on 2018/01/01 12:31:31 UTC

[GitHub] lucene-solr pull request #293: spellcheck prefix already contains a trailing...

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