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,
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
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
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
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
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