Commit 30289c90 authored by Daniel Witek's avatar Daniel Witek

cleared filter for spellcheck

parent ffc596d7
......@@ -38,8 +38,8 @@ function search(e) {
const searchValue = document.getElementById('input').value
console.log(searchValue);
clearList();
sendNameQuery(searchValue);
sendSpellcheck(searchValue);
sendNameQuery(searchValue);
}
function clearList() {
......@@ -120,8 +120,8 @@ function sendSpellcheck(spell){
.rows(10)
.set(`spellcheck=on`)
.set(`spellcheck.q=`+spell)
if(filter)
query.matchFilter('types_features_str', filter)
// if(filter)
// query.matchFilter('types_features_str', filter)
client.spell(spell,function(err,obj){
if(err){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment