Commit d77e81f4 authored by Selina Nicole Brunner's avatar Selina Nicole Brunner

improve type filter

parent ac2ff717
......@@ -61,14 +61,14 @@ function sendNameQuery(q){
//var query = "q=about_txt_en:("+ q +")&rows=100" //rows ist nötig, sonst nur 10 results
var query = client.createQuery()
.q(q)
.q({*q*})
.dismax()
.qf({poke_txt_en : 0.2 , about_txt_en : 3.3})
.mm(0)
.start(0)
.rows(10)
if(filter)
query.matchFilter('types_features_str', test)
query.matchFilter('types_features_str', filter)
console.log(query);
client.search(query,function(err,obj){
......
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