/[SWISH-Split]/trunk/Split.pm
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/Split.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2 by dpavlin, Sun Aug 8 10:09:55 2004 UTC revision 3 by dpavlin, Sun Aug 8 10:53:04 2004 UTC
# Line 100  Add document to index. Line 100  Add document to index.
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    
# Line 128  all entries which haven't changed in all Line 137  all entries which haven't changed in all
137    
138  sub close {  sub close {
139          my $self = shift;          my $self = shift;
140    
141            return 1;
142  }  }
143    
144    
# Line 231  sub in_slice { Line 242  sub in_slice {
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;

Legend:
Removed from v.2  
changed lines
  Added in v.3

  ViewVC Help
Powered by ViewVC 1.1.26