Giter Club home page Giter Club logo

search_api_spellcheck's Introduction

Search spellcheck

Spellcheck for Search API solr.

Results show: Did you mean [some suggestion]?. like in Google.

How to use

Edit your Views search page and add the Spellcheck field to the Views' Header and/or Footer.

search_api_spellcheck's People

Contributors

haringsrob avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

search_api_spellcheck's Issues

Error on suggestion array empty

Hello I have one error returned if the suggestion array is empty here:

if ($filter = $this->getFilterMatch($suggestion)) {

I solve the problem like this

if ( count($suggestion) != 0 && $filter = $this->getFilterMatch($suggestion)) {

Thanks for this module !

Requires additional hook?

First of all, thank you for your contribution.

Secondly i have had some problems with this module and it only started working after i have added new hook in my custom module.

function MYMODULE_search_api_solr_query_alter(\Solarium\Core\Query\QueryInterface $solarium_query, \Drupal\search_api\Query\QueryInterface $query) {
  $solarium_query->addParam('spellcheck', 'on');
}

Is there something i missed while configuring it, or it does not work by itself?

Thirdly, are you planning to add it to contrib modules? The spelling suggestions is something many people might need.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.