61 |
of that item in index (which might be what you want). That's because specified |
of that item in index (which might be what you want). That's because specified |
62 |
C<pk> column will be used for C<@uri> in Hyper Estraier. |
C<pk> column will be used for C<@uri> in Hyper Estraier. |
63 |
|
|
64 |
|
If name of primary key begins with C<_> it will not be added into text |
65 |
|
indexing (so you won't be able to find prmary key value, but it will still |
66 |
|
be available as attribute value). |
67 |
|
|
68 |
=item --user login |
=item --user login |
69 |
|
|
70 |
=item --passwd password |
=item --passwd password |
194 |
|
|
195 |
die "$0: can't find single column primary key for table ${table}. Please specify column with --pk\n" unless ($c->{pk}); |
die "$0: can't find single column primary key for table ${table}. Please specify column with --pk\n" unless ($c->{pk}); |
196 |
|
|
197 |
warn "using primary key $c->{pk}\n"; |
warn "using primary key $c->{pk}", $c->{pk} =~ m/^_/ ? " (not indexed)" : "", "\n"; |
198 |
|
|
199 |
$dbh->begin_work; |
$dbh->begin_work; |
200 |
|
|
239 |
$doc->add_attr($col, $val); |
$doc->add_attr($col, $val); |
240 |
|
|
241 |
# add body text to document (make it searchable using full-text index) |
# add body text to document (make it searchable using full-text index) |
242 |
$doc->add_text($val); |
$doc->add_text($val) unless ($col =~ m/^_/); |
243 |
|
|
244 |
$log .= "R"; |
$log .= "R"; |
245 |
} else { |
} else { |