86 |
|
|
87 |
Search, insert, append or replace data in B-Tree |
Search, insert, append or replace data in B-Tree |
88 |
|
|
89 |
|
$t->B_search( |
90 |
|
Key => 'key value', |
91 |
|
Data => { "path" => { |
92 |
|
"t" => "title of document", |
93 |
|
"f" => 99, |
94 |
|
}, |
95 |
|
}, |
96 |
|
Insert => 1, |
97 |
|
Append => 1, |
98 |
|
); |
99 |
|
|
100 |
Semantics: |
Semantics: |
101 |
|
|
313 |
my $path = shift || confess "to_jsfind need path to your index!"; |
my $path = shift || confess "to_jsfind need path to your index!"; |
314 |
|
|
315 |
$path .= "/" if ($path =~ /\/$/); |
$path .= "/" if ($path =~ /\/$/); |
316 |
carp "can't create index in '$path': $!" if (! -w $path); |
carp "create directory for index '$path': $!" if (! -w $path); |
317 |
|
|
318 |
return $self->root->to_jsfind($path,"0"); |
return $self->root->to_jsfind($path,"0"); |
319 |
} |
} |