Just as a test, developed this code in C # to get all documents from 
Couchbase Lite and after trying to find all documents that contain the word for 
the filter.
This code is only to see the behavior.
I'm using Xamarin Studio, Xamarin Android, C # and Couchbase Lite.


 var qry = database.CreateAllDocumentsQuery ();
qry.AllDocsMode = AllDocsMode.AllDocs;
var docs = qry.Run ();
 for (int line = 0; line < lines.Count (); line++) {
  var row = lines.GetRow (line);
                 txtResultado.Text += row.Document.GetProperty ("nome").
ToString ().Contains (textPesquisar.Text) ? (row.Document.GetProperty (
"nome").ToString () ) : string.Empty;
                 } 
In total there are 12,000 documents.
And this loop was very slow.
Is there any quick way to go through these documents and search for the word 
entered 
by the user?

I'm trying to develop an app for information guide. So users can enter any 
word and the app has to trazar documents containing that word, wherever it 
is.

Have rode the entire structure: Couchbase Server, SyncGataway, etc.
Everything is working perfect, however, this type of search I am not able to 
do and this would make the project unfeasible with Couchbase Lite, but takes 
a lot of SyncGateway, so I'm insisting.

-- 
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/116c77fc-527c-4987-a180-8d4df3ca2f98%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to