hi, everybody.
I am a beginner to use gdapi2.0.0, and i find a problem that confused me much. today, i want to use this api to search some thing under specific directory.
for example, we can type key words google under:"c:\" in the input field of google desktop search web interface.but when i use this search string with gdapi2.0.0, it have no effect, my code is something like http://groups.google.vu/group/Google-Desktop-Plugin-GDSJavaAPI/browse_thread/thread/4b519e9f1d3f350d
String basedir = "d:\\";
String srchstr = "txt" + " under:\" " + basedir +"\"";
System.out.println(srchstr);
JGDQuery query = new JGDQuery(srchstr ); // constructs a new query
Results results = query.execute();
int count = results.getCount();
System.out.println("count = " + count);
but , i can also retrieve some files in C: volumn. this means "under" doesn't work well for me.
because i am a newer ,so may be i have miss something. if you can give some kindkly help, that will be much thankful.
ps. i find the usage about the gdapi2.0.0 is too simple to satisfy my requirment in http://gdapi.sourceforge.net/. is there a place that i can learn more about this useful api?
thanks again!
tanleiyu , from china.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
ok, i know something wrong. it's not the bug of gdapi2.0.0. "under" should follow a directory not the volumn.
ps: i find the usage about the gdapi2.0.0 is too simple to satisfy my requirment in http://gdapi.sourceforge.net/. is there a place that i can learn more about this useful api?
thanks again!
tanleiyu , from china.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
hi, everybody.
I am a beginner to use gdapi2.0.0, and i find a problem that confused me much. today, i want to use this api to search some thing under specific directory.
for example, we can type key words google under:"c:\" in the input field of google desktop search web interface.but when i use this search string with gdapi2.0.0, it have no effect, my code is something like
http://groups.google.vu/group/Google-Desktop-Plugin-GDSJavaAPI/browse_thread/thread/4b519e9f1d3f350d
String basedir = "d:\\";
String srchstr = "txt" + " under:\" " + basedir +"\"";
System.out.println(srchstr);
JGDQuery query = new JGDQuery(srchstr ); // constructs a new query
Results results = query.execute();
int count = results.getCount();
System.out.println("count = " + count);
but , i can also retrieve some files in C: volumn. this means "under" doesn't work well for me.
because i am a newer ,so may be i have miss something. if you can give some kindkly help, that will be much thankful.
ps. i find the usage about the gdapi2.0.0 is too simple to satisfy my requirment in http://gdapi.sourceforge.net/. is there a place that i can learn more about this useful api?
thanks again!
tanleiyu , from china.
ok, i know something wrong. it's not the bug of gdapi2.0.0. "under" should follow a directory not the volumn.
ps: i find the usage about the gdapi2.0.0 is too simple to satisfy my requirment in http://gdapi.sourceforge.net/. is there a place that i can learn more about this useful api?
thanks again!
tanleiyu , from china.