Re: Exception in WildCardQuery

2006-04-10 Thread Erick Erickson
It took me a couple of days, but this is added to JIRA Erick

Re: Exception in WildCardQuery

2006-04-08 Thread Erick Erickson
OK, I get it now. Obviously I didn't read your response as you meant it and was focusing on the optimization part. I'd also agree that using the most specific tool for the task is better design. There's also an argument that "I'd rather have a library fail than do something non-obvious". I'll leav

Re: Exception in WildCardQuery

2006-04-08 Thread Erik Hatcher
I don't mean literally that WildcardQuery would morph into a TermQuery, but rather "behave" like it by simply doing what it currently does but without the string index exception that currently is thrown. It wouldn't take any additional clockticks, per se, I don't think - it'd just behave a

Re: Exception in WildCardQuery

2006-04-08 Thread karl wettin
8 apr 2006 kl. 19.04 skrev Erick Erickson: I have to disagree. Optimization where it really doesn't count is, in my experience, bad. Period. My intent was not to ephasise on optimization. The waste of clockticks is just a side effect from what I consider bad design. WildcardQuery and T

Re: Exception in WildCardQuery

2006-04-08 Thread Erick Erickson
I have to disagree. Nowhere in the javadoc is this condition noted. There is no way for a user to know that this is a restriction, and forcing developers to find this by having a program fail, even with a better error message, is...er...unfortunate. Even if this were in the javadoc, I still have to

Re: Exception in WildCardQuery

2006-04-08 Thread karl wettin
8 apr 2006 kl. 13.06 skrev Erik Hatcher: Feel free to log this as a bug report in our JIRA issue tracker. It seems like a reasonable change to make, such that a WildcardQuery without a wildcard character would behave like TermQuery. -1 Even though very few, it is a waste of clockticks.

Re: Exception in WildCardQuery

2006-04-08 Thread Erik Hatcher
Feel free to log this as a bug report in our JIRA issue tracker. It seems like a reasonable change to make, such that a WildcardQuery without a wildcard character would behave like TermQuery. Erik On Apr 7, 2006, at 10:28 AM, Erick Erickson wrote: So I'm trying to do silly stuff,

Exception in WildCardQuery

2006-04-07 Thread Erick Erickson
So I'm trying to do silly stuff, just to poke a bit at wildcard queries. So sue me... But I ran across this And yes, I know that creating a wildcard query is dangerous and downright silly when you don't have a wildcard in the term, but this still seems like a case should, say, default to a sim