Chris Mattmann wrote:
So, my question to you then
is, what type of QueryFilter should I develop in order to get my query for
contactemail:<email address> to work as a standalone query? For instance,
right now I'm sub-classing the RawFieldQueryFilter, which doesn't seem to be
the right way to do it now. Is there a class in Nutch that I can sub-class
to get most of the functionality for doing a type:<value> query as a
standalone query?

You can simply pass a non-zero boost to the RawFieldQueryFilter constructor, e.g.:

public class MyQueryFilter extends RawFieldQueryFilter {
  public MyQueryFilter() {
    super("myfield", 1.0f);
  }
}

Or you can implement QueryFilter directly.  There's not that much to it.

Doug

Reply via email to