i have the function which receive the view and run the query like :

public QueryEnumerator findBy( final String fieldName ) { 
com.couchbase.lite.View view = createView( fieldName );
Query query = view.createQuery();
Timestamp currentTime = this.currentTime();
if(previousTime == null)
previousTime = currentTime;
query.setStartKey( previousTime );
query.setEndKey( currentTime );
 QueryEnumerator rowEnum = null; 
try {
rowEnum = query.run();
android.util.Log.d( TAG, rowEnum.toString() );
} catch (CouchbaseLiteException e) {
e.printStackTrace();
}
return rowEnum;
}

Now what i am looking is that I want to search only those document which 
are in between previousTime and currenttime , i dont know how actually i do 
this , actually i need this -> Select * from abc where date > previousTime

-- 
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/9184fcdd-ba1e-4c0d-89a9-eb738d93a353%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to