[recoll-user] Using directories in queries

  • From: Michael Below <below@xxxxxxxx>
  • To: recoll-user@xxxxxxxxxxxxx
  • Date: Thu, 24 Mar 2011 14:25:17 +0100

Hi,

I just tried to search for all occurrences of one word, except those in
files in one subdirectory. My first attempt after looking at the docs
was was something like "word -dir:subdirectory", this doesn't seem to
work for two reasons: paths have to be absolute, and negatives are not
supported, right?

But I can't get dir: for positive criteria to work as well:

If I search for "test" I get at least 2584 results, the first result is
file:///home/mbelow/netbeans-6.9.1/ruby/jruby-1.5.1/lib/ruby/gems/1.8/gems/rails-2.3.8/guides/source/testing.textile

If I search for "test
dir:/home/mbelow/netbeans-6.9.1/ruby/jruby-1.5.1/lib/ruby/gems/1.8/gems/rails-2.3.8/guides/source/"
I get zero results

If I search for "test dir:/home/mbelow/" I get 77 results, that
textile file mentioned above is not among them. This is especially
strange because only /home/mbelow is indexed, so there should be no
difference to the first search string.

How can I do this?

Michael

Other related posts: