Details

    • Type: New Feature
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Core, Repository
    • Labels:
      None

      Description

      solrTemplate.execute(new SolrCallback<List<String>>() {
      
            @Override
            public List<String> doInSolr(SolrClient solrClient) throws SolrServerException, IOException {
      
              SolrQuery query = new SolrQuery("name:delll");
              query.set("qt", "/spell");
              query.set("spellcheck", "on");
      
              List<String> suggestions = new ArrayList<String>();
              QueryResponse response = solrClient.query(query);
              for (Suggestion suggestion : response.getSpellCheckResponse().getSuggestions()) {
                suggestions.addAll(suggestion.getAlternatives());
              }
              return suggestions;
            }
          });
      

      The above could be wrapped nicely by inspecting return type List or Map having a repository method with @Spellcheck.

        Attachments

          Activity

            People

            • Assignee:
              cstrobl Christoph Strobl
              Reporter:
              cstrobl Christoph Strobl
              Last updater:
              Christoph Strobl
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: