Similar to SQL "LIKE" statement in Couchbase
Tue, 03/12/2013 - 11:13
Is this possible in Couchbase??
SELECT * FROM users WHERE user_name LIKE '%john%'.
Seems like I have to use startkey and endkey. But doesn't seem to get the right results.
Also what is the use of startkey_docid? Cause to me it seems like "LIKE '%john'" in SQL but still it doesn't seem to be very satisfactory.
There is no built in support in Couchbase for this. You should probably use a search engine for this, the ElasticSearch integration using the plugin is pretty simple to set up.