Answering my own question: I switched from FieldQueryFilter to
RawFieldQueryFilter (additionally passing in 1.0f as the weight to super).

However, I also want to have a filter that will take phrases delimited by
quotes, and also a filter that can handle a colon appearing in the search
term.

So... new question: How can I do that? :)

On 8/9/06, Benjamin Higgins <[EMAIL PROTECTED]> wrote:

Hi all,

I want to add two search operators that require custom treatment because
they contain what I have found are special characters.

In one example, the operator takes a numeric job number that contains one
period, e.g. "jobnumber:2060250.00".  I also have a "mainnumber" operator
that works the same way but doesn't take the decimal portion.

Trouble is, mainnumber queries works fine; jobnumber queries do not.  The
code for both query filters are exactly the same, just with different
parameters to super:

public class JobNumberQueryFilter extends FieldQueryFilter {
  public JobNumberQueryFilter() {
    super("jobnumber");
  }
}

So I am guessing that "." (period) is a special character that is either
being discarded by the indexer or is being parsed out at a higher level by
the query parser.

How can I get this to work?

Thanks all.

Ben

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Nutch-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nutch-general

Reply via email to