org.apache.nutch.searcher
Class QueryFilters

java.lang.Object
  extended byorg.apache.nutch.searcher.QueryFilters

public class QueryFilters
extends Object

Creates and caches QueryFilter implementing plugins. QueryFilter implementations should define either the "fields" or "raw-fields" attributes for any fields that they process, otherwise these will be ignored by the query parser. Raw fields are parsed as a single Query.Term, including internal punctuation, while non-raw fields are parsed containing punctuation are parsed as multi-token Query.Phrase's.


Method Summary
static BooleanQuery filter(Query input)
          Run all defined filters.
static boolean isField(String name)
           
static boolean isRawField(String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

filter

public static BooleanQuery filter(Query input)
                           throws QueryException
Run all defined filters.

Throws:
QueryException

isField

public static boolean isField(String name)

isRawField

public static boolean isRawField(String name)


Copyright © 2006 The Apache Software Foundation