KinoSearch::Search::LeafQuery man page on Fedora

Man page or keyword search:  
man Server   31170 pages
apropos Keyword Search (all sections)
Output format
Fedora logo
[printable version]

KinoSearch::Search::LeUsereContributed Perl DoKinoSearch::Search::LeafQuery(3)

NAME
       KinoSearch::Search::LeafQuery - Leaf node in a tree created by
       QueryParser.

SYNOPSIS
	   package MyQueryParser;
	   use base qw( KinoSearch::Search::QueryParser );

	   sub expand_leaf {
	       my ( $self, $leaf_query ) = @_;
	       if ( $leaf_query->get_text =~ /.\*\s*$/ ) {
		   return PrefixQuery->new(
		       query_string => $leaf_query->get_text,
		       field	    => $leaf_query->get_field,
		   );
	       }
	       else {
		   return $self->SUPER::expand_leaf($leaf_query);
	       }
	   }

DESCRIPTION
       LeafQuery objects serve as leaf nodes in the tree structure generated
       by QueryParser's tree() method.	Ultimately, they must be transformed,
       typically into either TermQuery or PhraseQuery objects, as attempting
       to search a LeafQuery causes an error.

CONSTRUCTORS
   new( [labeled params] )
	   my $leaf_query = KinoSearch::Search::LeafQuery->new(
	       text  => '"three blind mice"',	 # required
	       field => 'content',		 # default: undef
	   );

       ·   field - Optional field name.

       ·   text - Raw query text.

METHODS
   get_field()
       Accessor for object's "field" attribute.

   get_text()
       Accessor for object's "text" attribute.

INHERITANCE
       KinoSearch::Search::LeafQuery isa KinoSearch::Search::Query isa
       KinoSearch::Object::Obj.

COPYRIGHT AND LICENSE
       Copyright 2005-2010 Marvin Humphrey

       This program is free software; you can redistribute it and/or modify it
       under the same terms as Perl itself.

perl v5.14.1			  2011-06-20  KinoSearch::Search::LeafQuery(3)
[top]

List of man pages available for Fedora

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net