Query: plucene::search::termquery
OS: debian
Section: 3pm
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
Plucene::Search::TermQuery(3pm) User Contributed Perl Documentation Plucene::Search::TermQuery(3pm)NAMEPlucene::Search::TermQuery - a query that contains a termSYNOPSIS# isa Plucene::Search::Query $term_query->normalize($norm); my $ssw = $term_query->sum_squared_weights($searcher); my $as_string = $term_query->as_string($field);DESCRIPTIONA 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.METHODSterm / idf / weight Get / set these attributes sum_squared_weights my $ssw = $term_query->sum_squared_weights($searcher); This will return the sum squared weights for the passed in searcher. normalize $term_query->normalize($norm); to_string my $as_string = $term_query->as_string($field); perl v5.12.4 2011-08-14 Plucene::Search::TermQuery(3pm)
Similar Topics in the Unix Linux Community |
---|
Search term and output term in desired field |
How to apply brackets? |
awk to sum specific field when pattern matches |
Search term highlighting using "less" |
Match complete field |