Commit 3e5b0f5a authored by Bertrand  NÉRON's avatar Bertrand NÉRON
Browse files

add views used for autocomplete jquery-Ui to reqest couchdb against strain

for each strain i emit  keys for each words of 3 letters to 25 letters along the strain
parent ce20fbc1
function(doc) {
var strain = doc.replicon.strain.toLowerCase();
for( var wl=3 ; wl<25 ; wl++){
for( var i=0; i< strain.length-wl ; i++ ){
emit( strain.substring(i, i+wl), doc.replicon.strain);
}
}
}
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