On Aug 17, 2015, at 11:43 AM, Brendan Duddridge <[email protected]<mailto:[email protected]>> wrote:
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. documentType is an aspect of the view, not of a query. It takes effect at indexing time, by filtering which documents get passed to the map function. This is what I'm doing in code: CBLQuery *query = [fullTextView createQuery]; query.fullTextQuery = searchTerm; fullTextView.documentType = self.document.documentID; You should set documentType before querying, ideally at the same time you set the mapBlock, so that it’s in effect when the view gets indexed. —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/64CA298A-3123-4AB7-9802-BF4FFBD27BCE%40couchbase.com. For more options, visit https://groups.google.com/d/optout.
