Spellcheck for Search API solr.
Results show: Did you mean [some suggestion]?. like in Google.
Edit your Views search page and add the Spellcheck field to the Views' Header and/or Footer.
Search api suggestions area for Drupal 8 views
Spellcheck for Search API solr.
Results show: Did you mean [some suggestion]?. like in Google.
Edit your Views search page and add the Spellcheck field to the Views' Header and/or Footer.
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 !
Running configuration inspector inspect over a created view
using this module indicated that there was missing schema information.
After patching the schema with attached file, the configuration inspector did not report any errors for this field.
I have placed the patch file in zip archive so that it can be uploaded.
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.