On Feb 24, 2014, at 10:56 AM, Todd Freese <[email protected]> wrote:

> Is there no way to do a contains search? *test* does not seem to work. The 
> docs mention doing a prefix like test* which works.

Apparently you can't search on substrings within words; I think this is a side 
effect of the way the SQLite FTS indexing works (it's probably building a 
sorted list of all the words found in all the documents.) Doing a full 
substring match would probably require a brute-force linear search. (Couchbase 
Lite could implement that at the SQL level using a LIKE comparison, but it'd 
probably be quite slow.)

> Also, I need to search across multiple properties. Is the correct way to do 
> this is combine them into one string before sending them to CBLTextKey?

Or you can call emit() multiple times, which is slightly faster.

--Jens

-- 
You received this message because you are subscribed to the Google Groups 
"Couchbase Mobile" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/mobile-couchbase/9B203958-1BAF-47CE-BC32-E12DEEFA0605%40couchbase.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to