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