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

Reply via email to