diff options
author | Eric Wong <e@80x24.org> | 2019-06-14 18:18:06 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2019-06-14 21:56:41 +0000 |
commit | ec32087fbd0af943017d2047eedbdbd59d3291da (patch) | |
tree | 03d95990c8872b400dac68d1f7e75371baa5f179 /lib/PublicInbox/Search.pm | |
parent | 9126f3ca9f8ebb6b04afbba1e6f84e705f81e1b6 (diff) | |
download | public-inbox-ec32087fbd0af943017d2047eedbdbd59d3291da.tar.gz |
Another small step towards terminology consistency with Xapian.
Diffstat (limited to 'lib/PublicInbox/Search.pm')
-rw-r--r-- | lib/PublicInbox/Search.pm | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/PublicInbox/Search.pm b/lib/PublicInbox/Search.pm index 45431ecc..60fc861a 100644 --- a/lib/PublicInbox/Search.pm +++ b/lib/PublicInbox/Search.pm @@ -143,15 +143,15 @@ sub _xdb ($) { my ($xdb, $slow_phrase); my $qpf = \($self->{qp_flags} ||= $QP_FLAGS); if ($self->{version} >= 2) { - foreach my $part (<$dir/*>) { - -d $part && $part =~ m!/[0-9]+\z! or next; - my $sub = Search::Xapian::Database->new($part); + foreach my $shard (<$dir/*>) { + -d $shard && $shard =~ m!/[0-9]+\z! or next; + my $sub = Search::Xapian::Database->new($shard); if ($xdb) { $xdb->add_database($sub); } else { $xdb = $sub; } - $slow_phrase ||= -f "$part/iamchert"; + $slow_phrase ||= -f "$shard/iamchert"; } } else { $slow_phrase = -f "$dir/iamchert"; |