Linux iad1-shared-b7-18 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
Apache
: 67.205.6.31 | : 216.73.216.171
Cant Read [ /etc/named.conf ]
8.2.29
fernandoquevedo
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
usr /
share /
perl5 /
Plucene /
Search /
[ HOME SHELL ]
Name
Size
Permission
Action
PhraseScorer
[ DIR ]
drwxr-xr-x
BooleanClause.pm
385
B
-rw-r--r--
BooleanQuery.pm
4.24
KB
-rw-r--r--
BooleanScorer.pm
3.93
KB
-rw-r--r--
DateFilter.pm
2.08
KB
-rw-r--r--
Filter.pm
1.13
KB
-rw-r--r--
HitCollector.pm
1.19
KB
-rw-r--r--
Hits.pm
2.39
KB
-rw-r--r--
IndexSearcher.pm
3.35
KB
-rw-r--r--
PhrasePositions.pm
1.37
KB
-rw-r--r--
PhraseQuery.pm
3.21
KB
-rw-r--r--
PhraseScorer.pm
2
KB
-rw-r--r--
PrefixQuery.pm
1.81
KB
-rw-r--r--
Query.pm
2.12
KB
-rw-r--r--
Scorer.pm
663
B
-rw-r--r--
Searcher.pm
1.94
KB
-rw-r--r--
Similarity.pm
1.06
KB
-rw-r--r--
TermQuery.pm
2.46
KB
-rw-r--r--
TermScorer.pm
1.67
KB
-rw-r--r--
TopDocs.pm
701
B
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : DateFilter.pm
package Plucene::Search::DateFilter; use base 'Plucene::Search::Filter'; use Carp; use strict; use warnings; use Plucene::Document::DateSerializer; use Time::Piece; use Bit::Vector::Minimal; =head1 NAME Plucene::Search::DateFilter - Restrict searches to given time periods =head1 SYNOPSIS my $filter = Plucene::Search::DateFilter->new({ field => "date", from => Time::Piece $from, to => Time::Piece $to }) my $hits = $searcher->search($query, $filter); =head1 DESCRIPTION This class can restrict the results of a search to a set of dates. This requires a field to have been indexed using L<Plucene::Document::DateSerializer>. See the documentation for that module for how to do this. =head1 METHODS =head2 new my $filter = Plucene::Search::DateFilter->new({ field => "date", from => Time::Piece $from, to => Time::Piece $to }) This creates a new filter. Either of C<from> or C<to> are optional. =cut sub new { my ($self, $args) = @_; for my $arg (qw(from to)) { next unless exists $args->{$arg}; croak "$arg argument was not a Time::Piece object" unless UNIVERSAL::isa($args->{$arg}, "Time::Piece"); } croak "Need to pass a field" unless exists $args->{field}; no warnings 'uninitialized'; bless { field => $args->{field}, from => freeze_date($args->{from} || Time::Piece->new(0)), to => freeze_date($args->{to} || Time::Piece->new(~0)), }, $self; } =head2 bits This is used by the searcher to iterate over the documents and return a bitfield specifying which documents are included in the range. =cut sub bits { my ($self, $reader) = @_; my $bits = Bit::Vector::Minimal->new(size => $reader->max_doc); my $enum = $reader->terms( Plucene::Index::Term->new({ field => $self->{field}, text => $self->{from} })); return $bits unless $enum->term; my $termdocs = $reader->term_docs; my $stop = Plucene::Index::Term->new({ field => $self->{field}, text => $self->{to} }); while ($enum->term->le($stop)) { $termdocs->seek($enum->term); $bits->set($termdocs->doc) while $termdocs->next; last unless $enum->next; } return $bits; } 1;
Close