Find similar names using Couchbase server 3.0 and port 8092 -


i want find similar location names using couchbase server. created index follows

function (doc, meta) {   emit(doc.loc_name, doc); } 

this how query data

http://ip address:8092/dev-locations/_design/dev_test_view/_view/searchbylocationname?full_set=true&inclusive_end=true&stale=false&connection_timeout=60000&key=%22joh%22 

but return if exact match found. looking when send key joh, should return johenaskirchen , johenasberg (same our in mysql)

any highly appreciated.

note : tried n1ql , looking ways implement without n1ql

the key parameter exact match. want combination of startkey , endkey:

?startkey=%22joh%22&endkey=%22joh\uefff%22 

the \uefff trick, unicode character can seen "the biggest character" ensures key johzzzzzz still considered under upper bound of joh\uefff (endkey inclusive).


Comments

Popular posts from this blog

android - Pass an Serializable object in AIDL -

How to provide Authorization & Authentication using Asp.net, C#? -

How to use Authorization & Authentication in Asp.net, C#? -