line |
true |
false |
branch |
21
|
8 |
0 |
$@ ? : |
151
|
0 |
0 |
if ($$args{$arg}) { } |
160
|
0 |
0 |
if ($$args{'doc_dbh'}) |
165
|
0 |
0 |
if ($$args{'db'}) |
180
|
0 |
0 |
if $@ |
190
|
0 |
0 |
unless ($self->_fetch_collection_info) |
213
|
0 |
0 |
defined $$args{$field} ? : |
218
|
0 |
0 |
$$self{'CHARSET'} eq 'iso-8859-2' ? : |
236
|
0 |
0 |
if ($$self{'STOPLIST'} and ref $$self{'STOPLIST'}) |
240
|
0 |
0 |
if $PA |
252
|
0 |
0 |
exists $$args{'doc_key_length'} ? : |
297
|
0 |
0 |
if ($$ids[-1] > $max_indexed_id) |
304
|
0 |
0 |
if $PA > 1 |
317
|
0 |
0 |
if $PA > 1 |
328
|
0 |
0 |
unless defined $$self{'DOC_DBH'} |
332
|
0 |
0 |
if (ref $keys[0] eq 'ARRAY') { } |
|
0 |
0 |
elsif ($keys[0] =~ /^\d+$/) { } |
338
|
0 |
0 |
if $#$keys < 0 |
342
|
0 |
0 |
if $PA |
348
|
0 |
0 |
unless ($self->_ping_doc($doc_key)) |
349
|
0 |
0 |
if $PA |
359
|
0 |
0 |
if ($$self{'UPDATE_COMMIT_INTERVAL'} and $batch_count >= $$self{'UPDATE_COMMIT_INTERVAL'}) |
380
|
0 |
0 |
if (defined $doc_id) |
382
|
0 |
0 |
if $PA |
389
|
0 |
0 |
if $PA |
393
|
0 |
0 |
if $PA |
402
|
0 |
0 |
if $do_prox |
406
|
0 |
0 |
if $PA |
409
|
0 |
0 |
if $do_prox |
412
|
0 |
0 |
$term_count ? : |
415
|
0 |
0 |
if $PA |
423
|
0 |
0 |
unless ($$self{'IN_ADD_TRANSACTION'}) |
433
|
0 |
0 |
if ($$self{'UPDATE_COMMIT_INTERVAL'} and $$self{'ADD_BATCH_COUNT'} >= $$self{'UPDATE_COMMIT_INTERVAL'}) |
443
|
0 |
0 |
unless ($$self{'IN_ADD_TRANSACTION'}) |
473
|
0 |
0 |
if (ref $doc_keys[0] eq 'ARRAY') { } |
|
0 |
0 |
elsif ($doc_keys[0] =~ /^\d+$/) { } |
488
|
0 |
0 |
if (ref $ids[0] eq 'ARRAY') { } |
|
0 |
0 |
elsif ($ids[0] =~ /^\d+$/) { } |
494
|
0 |
0 |
if $#$ids < 0 |
497
|
0 |
0 |
if $PA |
499
|
0 |
0 |
if $PA |
542
|
0 |
0 |
if (lc $query eq 'total_words') |
574
|
0 |
0 |
unless $query |
579
|
0 |
0 |
unless $query_string =~ /\S+/ |
580
|
0 |
0 |
unless exists $$self{'FIELD_NO'}{$field} |
586
|
0 |
0 |
if ($fld eq '__DEFAULT') { } |
589
|
0 |
0 |
if (exists $$self{'FIELD_NO'}{$fld}) |
599
|
0 |
0 |
unless $#query_field_nos >= 0 |
606
|
0 |
0 |
if ($$args{$mask_type}) |
609
|
0 |
0 |
if (ref $mask) { } |
618
|
0 |
0 |
if ($$args{'or_mask_set'}) |
622
|
0 |
0 |
if (ref $mask) { } |
635
|
0 |
0 |
if ($$args{'unscored_search'}) |
637
|
0 |
0 |
if $#result_docs < 0 |
644
|
0 |
0 |
if ($scoring_method eq 'okapi') { } |
661
|
0 |
0 |
if ($#query_fnos == 0) { } |
675
|
0 |
0 |
if ($$self{'RESULT_MASK'}) |
712
|
0 |
0 |
if (exists $$self{'FIELD_NO'}{$$clause{'FIELD'}}) |
715
|
0 |
0 |
if ($$clause{'TYPE'} eq 'QUERY') { } |
|
0 |
0 |
elsif ($$clause{'TYPE'} eq 'PLURAL') { } |
|
0 |
0 |
elsif ($$clause{'TYPE'} eq 'WILD') { } |
|
0 |
0 |
elsif ($$clause{'TYPE'} eq 'PHRASE' or $$clause{'TYPE'} eq 'IMPLICITPHRASE') { } |
|
0 |
0 |
elsif ($$clause{'TYPE'} eq 'TERM') { } |
734
|
0 |
0 |
unless ($$clause{'MODIFIER'} eq 'NOT') |
735
|
0 |
0 |
if ($$clause{'TYPE'} eq 'PHRASE' or $$clause{'TYPE'} eq 'IMPLICITPHRASE') { } |
|
0 |
0 |
elsif ($$clause{'TYPE'} eq 'WILD' or $$clause{'TYPE'} eq 'PLURAL') { } |
749
|
0 |
0 |
if ($$clause{'MODIFIER'} eq 'NOT') { } |
|
0 |
0 |
elsif ($$clause{'MODIFIER'} eq 'AND' or $$clause{'CONJ'} eq 'AND') { } |
|
0 |
0 |
elsif ($$clause{'CONJ'} eq 'OR') { } |
757
|
0 |
0 |
if ($#or_vecs >= 0) |
772
|
0 |
0 |
if ($scorable_clause_count <= 0) |
778
|
0 |
0 |
if ($#or_vecs >= 0) |
803
|
0 |
0 |
if ($$self{'RESULT_MASK'}) |
807
|
0 |
0 |
if $and_vec->is_empty |
818
|
0 |
0 |
if ($$self{'PROXIMITY_INDEX'}) { } |
823
|
0 |
0 |
if $#and_ids < 0 |
824
|
0 |
0 |
if $#and_ids > $$self{'PHRASE_THRESHOLD'} |
842
|
0 |
0 |
if $and_vec_min <= 0 |
859
|
0 |
0 |
if $doc_id < $and_vec_min |
860
|
0 |
0 |
unless $and_vec->contains($doc_id) |
879
|
0 |
0 |
if ($id >= $doc_id) |
897
|
0 |
0 |
if ($next_pos > $last_pos and $next_pos <= $last_pos + $proximity) |
904
|
0 |
0 |
if ($seq_count == $term_count) |
908
|
0 |
0 |
if $doc_id > $and_vec_max |
926
|
0 |
0 |
if ($f_t) |
930
|
0 |
0 |
if $f_t > $max_f_t |
933
|
0 |
0 |
if ($count) |
946
|
0 |
0 |
if length $prefix < $$self{'MIN_WILDCARD_LENGTH'} |
954
|
0 |
0 |
if $#$terms + 1 > $$self{'MAX_WILDCARD_TERM_EXPANSION'} |
965
|
0 |
0 |
if ($f_t) |
969
|
0 |
0 |
if $f_t > $max_f_t |
972
|
0 |
0 |
if ($count) |
1001
|
0 |
0 |
if ($new_max_indexed_id != $$self{'MAX_INDEXED_ID'} or $$self{'SEARCH_COUNT'} > 1000) |
1034
|
0 |
0 |
if ($self->_collection_table_exists) { } |
1035
|
0 |
0 |
if ($self->_collection_table_upgrade_required or $self->collection_count < 1) |
1055
|
0 |
0 |
if (ref $doc_keys) { } |
1068
|
0 |
0 |
if (ref $doc_ids) { } |
1079
|
0 |
0 |
if (defined $max_indexed_id) { } |
1100
|
0 |
0 |
if $PA |
1103
|
0 |
0 |
if $PA |
1106
|
0 |
0 |
if $PA |
1109
|
0 |
0 |
if $PA |
1113
|
0 |
0 |
if $PA |
1117
|
0 |
0 |
if $PA |
1121
|
0 |
0 |
if $PA |
1135
|
0 |
0 |
if $PA |
1142
|
0 |
0 |
if $DBI::errstr |
1149
|
0 |
0 |
if $PA > 1 |
1150
|
0 |
0 |
unless ($self->collection_count) |
1151
|
0 |
0 |
if $PA > 1 |
1157
|
0 |
0 |
if $DBI::errstr |
1159
|
0 |
0 |
if ($@) |
1160
|
0 |
0 |
if $PA > 1 |
1163
|
0 |
0 |
if ($version and $version < 0.24) |
1164
|
0 |
0 |
if $PA > 1 |
1168
|
0 |
0 |
if $PA > 1 |
1176
|
0 |
0 |
if $sth->errstr |
1177
|
0 |
0 |
if ($sth->rows < 1) |
1178
|
0 |
0 |
if $PA |
1189
|
0 |
0 |
if $PA |
1190
|
0 |
0 |
if $PA |
1192
|
0 |
0 |
if $PA |
1198
|
0 |
0 |
exists $$old_row{$field} ? : |
1203
|
0 |
0 |
if (exists $$old_row{'czech_language'}) |
1204
|
0 |
0 |
if $$old_row{'czech_language'} |
1206
|
0 |
0 |
if (exists $$old_row{'language'}) |
1207
|
0 |
0 |
if ($$old_row{'language'} eq 'cz') { } |
1213
|
0 |
0 |
if (exists $$old_row{'document_table'}) |
1216
|
0 |
0 |
if (exists $$old_row{'document_id_field'}) |
1219
|
0 |
0 |
if (exists $$old_row{'document_fields'}) |
1223
|
0 |
0 |
if $PA |
1245
|
0 |
0 |
if $PA |
1253
|
0 |
0 |
if $PA |
1259
|
0 |
0 |
ref $$self{'STOPLIST'} ? : |
1263
|
0 |
0 |
if ($version =~ /(\d+)\.(\d+)\.(\d+)/) |
1267
|
0 |
0 |
unless $$self{'INDEX_DBH'}->do($sql, undef, $$self{'COLLECTION'}, $version, $$self{'MAX_INDEXED_ID'}, $$self{'DOC_TABLE'}, $$self{'DOC_ID_FIELD'}, $doc_fields, $$self{'CHARSET'}, $stoplists, $$self{'PROXIMITY_INDEX'}, $ERROR{'empty_query'}, $ERROR{'quote_count'}, $ERROR{'no_results'}, $ERROR{'no_results_stop'}, $ERROR{'wildcard_length'}, $ERROR{'wildcard_expansion'}, $$self{'MAX_WORD_LENGTH'}, $$self{'RESULT_THRESHOLD'}, $$self{'PHRASE_THRESHOLD'}, $$self{'MIN_WILDCARD_LENGTH'}, $$self{'MAX_WILDCARD_TERM_EXPANSION'}, $$self{'DECODE_HTML_ENTITIES'}, $$self{'SCORING_METHOD'}, $$self{'UPDATE_COMMIT_INTERVAL'}) |
1304
|
0 |
0 |
unless $$self{'COLLECTION'} |
1306
|
0 |
0 |
unless $self->_collection_table_exists |
1308
|
0 |
0 |
if ($self->_collection_table_upgrade_required) |
1363
|
0 |
0 |
$$self{'CHARSET'} eq 'iso-8859-2' ? : |
1365
|
0 |
0 |
$collection ? : |
1379
|
0 |
0 |
$$self{'CZECH_LANGUAGE'} ? : |
1385
|
0 |
0 |
if ($$self{'CZECH_LANGUAGE'}) { } |
1392
|
0 |
0 |
if ($$self{'CZECH_LANGUAGE'}) { } |
1402
|
0 |
0 |
if ($$self{'CZECH_LANGUAGE'}) { } |
1404
|
0 |
0 |
if index($content, $phrase) != -1 |
1405
|
0 |
0 |
if $PA > 1 |
1420
|
0 |
0 |
if ($all_fields) { } |
1425
|
0 |
0 |
unless (ref $$self{'W_D'}[$fno]) |
1431
|
0 |
0 |
if ($#fnos > -1) |
1438
|
0 |
0 |
unless $sth->execute |
1443
|
0 |
0 |
if ($$self{'DBD_TYPE'} eq 'SQLite') { } |
1485
|
0 |
0 |
if ($result_max < 1) |
1486
|
0 |
0 |
if (not @{$$self{'STOPLISTED_QUERY'};}) { } |
1500
|
0 |
0 |
if $idf < -1.8 |
1509
|
0 |
0 |
unless (scalar keys %score) |
1510
|
0 |
0 |
if (not @{$$self{'STOPLISTED_QUERY'};}) { } |
1562
|
0 |
0 |
if exists $$clause{'CONJ'} |
1563
|
0 |
0 |
if $$clause{'MODIFIER'} eq 'NOT' or $$clause{'MODIFIER'} eq 'AND' |
1565
|
0 |
0 |
if ($$clause{'TYPE'} eq 'TERM' or $$clause{'TYPE'} eq 'PLURAL' or $$clause{'TYPE'} eq 'WILD') { } |
|
0 |
0 |
elsif ($$clause{'TYPE'} eq 'IMPLICITPHRASE' or $$clause{'TYPE'} eq 'PHRASE') { } |
1569
|
0 |
0 |
if ($$clause{'MODIFIER'} eq 'OR') |
1577
|
0 |
0 |
if ($$clause{'MODIFIER'} eq 'OR') |
1584
|
0 |
0 |
if $or_term_count < 1 |
1590
|
0 |
0 |
if ($or_term_count >= 1) |
1593
|
0 |
0 |
if ($or_term_count >= 2) |
1596
|
0 |
0 |
if ($or_term_count > 4) |
1606
|
0 |
0 |
unless $$self{'MASK'} |
1611
|
0 |
0 |
if ($self->_fetch_mask) |
1614
|
0 |
0 |
if ($$self{'MASK'}{'and_mask'}) |
1616
|
0 |
0 |
if (not ref $mask) { } |
1617
|
0 |
0 |
unless ref $$self{'MASK_VECTOR'}{$mask} |
1628
|
0 |
0 |
if ($$self{'MASK'}{'not_mask'}) |
1630
|
0 |
0 |
if (not ref $mask) { } |
1631
|
0 |
0 |
unless ref $$self{'MASK_VECTOR'}{$mask} |
1644
|
0 |
0 |
if ($$self{'MASK'}{'or_mask'}) |
1647
|
0 |
0 |
if ($$self{'MASK'}{'or_mask_set'}) |
1652
|
0 |
0 |
if (not ref $mask) { } |
1653
|
0 |
0 |
unless ref $$self{'MASK_VECTOR'}{$mask} |
1665
|
0 |
0 |
if ($or_mask_count) |
1683
|
0 |
0 |
if (ref $$self{'MASK_VECTOR'}{$mask}) |
1691
|
0 |
0 |
if $sth->rows < 1 |
1723
|
0 |
0 |
if (@_) { } |
1735
|
0 |
0 |
if (@_) |
1754
|
0 |
0 |
if $PA |
1765
|
0 |
0 |
if ($#{$$self{'W_D'}[$fno];} >= 0) { } |
1778
|
0 |
0 |
unless defined $w_d[0] |
1793
|
0 |
0 |
if $PA |
1797
|
0 |
0 |
if $PA |
1804
|
0 |
0 |
unless ($$self{'DBD_TYPE'} eq 'SQLite') |
1817
|
0 |
0 |
if $PA >= 2 |
1818
|
0 |
0 |
if ($PA and $tc > 0) |
1819
|
0 |
0 |
if $tc % 500 == 0 |
1826
|
0 |
0 |
if $$self{'DBD_TYPE'} eq 'SQLite' |
1832
|
0 |
0 |
if $$self{'DBD_TYPE'} eq 'SQLite' |
1850
|
0 |
0 |
if $$self{'DBD_TYPE'} eq 'SQLite' |
1851
|
0 |
0 |
if $PA and $tc > 0 |
1865
|
0 |
0 |
if (ref $ids[0] eq 'ARRAY') |
1883
|
0 |
0 |
if (ref $ids[0] eq 'ARRAY') |
1887
|
0 |
0 |
unless (ref $$self{'ALL_DOCS_VECTOR'}) |
1894
|
0 |
0 |
if (@ids) |
1907
|
0 |
0 |
if (ref $ids[0] eq 'ARRAY') |
1911
|
0 |
0 |
unless (ref $$self{'ALL_DOCS_VECTOR'}) |
1918
|
0 |
0 |
if (@ids) { } |
1919
|
0 |
0 |
if ($$self{'ALL_DOCS_VECTOR'}->Size < $self->max_indexed_id + 1) |
1935
|
0 |
0 |
unless (ref $$self{'ALL_DOCS_VECTOR'}) |
1979
|
0 |
0 |
if ($$self{'DECODE_HTML_ENTITIES'}) |
1989
|
0 |
0 |
if $_ =~ /[a-z0-9]+/ |
2008
|
0 |
0 |
if $PA |
2012
|
0 |
0 |
if $PA |
2017
|
0 |
0 |
if $PA |
2021
|
0 |
0 |
if $PA |
2026
|
0 |
0 |
if $PA |
2030
|
0 |
0 |
if $PA |
2036
|
0 |
0 |
if $PA |
2040
|
0 |
0 |
if $PA |
2046
|
0 |
0 |
if $PA |
2048
|
0 |
0 |
if $PA |
2054
|
0 |
0 |
if $PA |
2058
|
0 |
0 |
if $PA |
2067
|
0 |
0 |
if ($$self{'STOPLIST'} and $$self{'STOPLISTED_WORDS'}{$term}) { } |
2069
|
0 |
0 |
if $PA > 1 |
2083
|
0 |
0 |
if @_ |
2091
|
0 |
0 |
wantarray ? : |
2097
|
0 |
0 |
unless @_ |
2100
|
0 |
0 |
@_ == 1 ? : |
2108
|
0 |
0 |
if (not defined $new_value || defined $old_value or defined $new_value and defined $old_value and $old_value eq $new_value) |