Hi,

I don't think that documentType is supported with a CBLView that's used for 
a FTS query.

It would be super useful if you could specify documentType for a full text 
query so you only get back documents of a specific type.

This is what I'm doing in code:

CBLQuery *query = [fullTextView createQuery];

query.fullTextQuery = searchTerm;

fullTextView.documentType = self.document.documentID;

I have all of my "record" documents with a type set to be the document ID 
of the form the records are contained in. That's why I'm using the form's 
documentID as the documentType.

But when I query like this, I'm getting back documents that match other 
document types. So it seems to be ignoring the documentType for full text 
queries.

Am I doing something wrong or is this in fact the case?

Thanks,

Brendan

-- 
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/6ff731a4-dfd6-45aa-8530-ed7a9565ade6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to