querying for files in a directory



Hey,
  I added a (fake) way to query for all files in some directory "foobar".

Syntax (for Filesystem backend):
inuri:/path/to/directory abcd
inuri:file:///path/to/directory abcd
=> query for abcd in the directory

inuri:foobar abcd
=> query for abcd in any directory named foobar

e.g. "inurl:boston .jpg" will return all jpg files in any directory
named boston.

For the webhistory backends,
inurl:abcd
=> return all websites in the index with abcd in the URL.

None of these queries are recursive i.e. it will only match files
directly within the specified directories. The "inuri:" is part of the
query syntax meaning it can be ORed, negated etc etc. This is not the
correct implementation (unfortunately to implement this correctly
nothing short of rewriting the FSQ is needed) e.g. for live queries,
if a new directory is created matching an inuri query then files
created in that new directory will not be returned during that live
query. You need to search again to see results from the new directory.

Its in the trunk now. If some of you could give it some testing, that
would be really helpful.

Thanks,
- dBera

-- 
-----------------------------------------------------
Debajyoti Bera @ http://dtecht.blogspot.com
beagle / KDE fan
Mandriva / Inspiron-1100 user


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]