I am new to CouchDB. How to implement keyword search in CouchDB?
For example, I have users document in CouchDB. The structure is the following:
UsersCouchDB:
id: 1
last_name: jack
first_name: abc
phone_num: 123-456-7890
id: 2
last_name: rose
first_name: gbcde
phone_num: 123-111-2222
...
I want to implement a search function for phone_num, so that if users type in, let's say, "23", then id 1 and id 2 should be shown because their phone number contain "23".
What is the easier or fastest way to do it? Is it possible not to use 3rd party package to do this feature?
I heard some people use couchdb-lucene to do the similar thing. Can anyone show me some codes about how to make this kind of search features?