Re: SpanRegexQuery causes error

2006-09-08 Thread Erik Hatcher
We welcome you to package up this issue into a JUnit test case to demonstrate the bug, such that we can add it to our suite and fix the issue. I can't say for certain its a bug just yet, but seems suspicious. A simple JUnit test that could replicate this would be most helpful! Thanks,

Re: SpanRegexQuery causes error

2006-09-08 Thread Luke Tan
I use analyzer with LowerCaseTokenizer only (No stop word or any other special treatment). The phrase is tokenized. On 9/9/06, Luke Tan I tried .* too but it gave the same error. I think it's a bug. I solve it using SpanTermQuery where the search phrase is broken into day of every months and

Re: SpanRegexQuery causes error

2006-09-08 Thread Luke Tan
I tried .* too but it gave the same error. I think it's a bug. I solve it using SpanTermQuery where the search phrase is broken into day of every months and I nest these SpanTermQuery into SpanNearQuery with slop > 1. Thanks. On 9/9/06, Erik Hatcher <[EMAIL PROTECTED]> wrote: On Sep 7, 2006

Re: SpanRegexQuery causes error

2006-09-08 Thread Erik Hatcher
On Sep 7, 2006, at 9:26 PM, Luke Tan wrote: spanFirst(spanRegexQuery(monthly:day * of every * months), 10) What analyzer did you use for your text? Again, that is not a valid regular expression. But also, you're using a single long string of several words within your SpanRegexQuery ter

Re: SpanRegexQuery causes error

2006-09-07 Thread Luke Tan
It's spanFirst(spanRegexQuery(monthly:day * of every * months), 10) java.lang.NullPointerException java.lang.NullPointerException at java.util.Hashtable.get(Hashtable.java:336) at org.apache.lucene.index.MultiReader.norms(MultiReader.java:163) at org.apache.lucene.search.spans.SpanWeig

Re: SpanRegexQuery causes error

2006-09-07 Thread Erik Hatcher
What's the .toString on the query it parsed to? Keep in mind that "*" isn't the proper regular expression to match everything - it would be ".*" or some other pattern. Erik On Sep 7, 2006, at 7:41 AM, Luke Tan wrote: Hi, I am using code in http://mail-archives.apache.org/mod_mbo