100 |
|
|
101 |
sub add { |
sub add { |
102 |
my $self = shift; |
my $self = shift; |
103 |
|
|
104 |
|
my $swishpath = shift || return; |
105 |
|
my $data = shift || return; |
106 |
|
|
107 |
|
return 1; |
108 |
} |
} |
109 |
|
|
110 |
=head2 delete |
=head2 delete |
111 |
|
|
112 |
Delete document from index. |
Delete documents from index. |
113 |
|
|
114 |
$i->delete($swishpath); |
$i->delete(@swishpath); |
115 |
|
|
116 |
=cut |
=cut |
117 |
|
|
118 |
sub delete { |
sub delete { |
119 |
my $self = shift; |
my $self = shift; |
120 |
|
|
121 |
|
my @paths = @_ || return; |
122 |
|
|
123 |
|
return 42; |
124 |
} |
} |
125 |
|
|
126 |
|
|
137 |
|
|
138 |
sub close { |
sub close { |
139 |
my $self = shift; |
my $self = shift; |
140 |
|
|
141 |
|
return 1; |
142 |
} |
} |
143 |
|
|
144 |
|
|
242 |
} |
} |
243 |
} |
} |
244 |
|
|
245 |
|
=head2 find_paths |
246 |
|
|
247 |
|
Return array of C<swishpath>s for given C<swish-e> query. |
248 |
|
|
249 |
|
my @p = $i->find_paths("headline=test*"); |
250 |
|
|
251 |
|
Useful for combining with L<"delete_documents"> to delete documents |
252 |
|
which hasn't changed a while (so, expired). |
253 |
|
|
254 |
|
=cut |
255 |
|
|
256 |
|
sub find_paths { |
257 |
|
my $self = shift; |
258 |
|
|
259 |
|
my $s = shift || return; |
260 |
|
} |
261 |
|
|
262 |
|
|
263 |
|
|
264 |
1; |
1; |