Here\'s an example of what I need in sql:
SELECT name FROM employ WHERE name LIKE %bro%
How do I create view li
i found a simple view code for my problem...
{
"getavailableproduct":
{ "map": "function(doc) {
var prefix = doc['productid'].match(/[A-Za-z0-9]+/g);
if(prefix)
for(var pre in prefix) { emit(prefix[pre],null); }
}"
}
}
from this view code if i split a key sentence into a key word... and i can call
?key="[search_keyword]"
but i need more complex code because if i run this code i can only find word wich i type (ex: eat, food, etc)...
but if i want to type not a complete word (ex: ea from eat, or foo from food) that code does not work..