Re: Leading wildcard query

2006-07-28 Thread Erick Erickson
You could form a filter, using the WildCardTermEnum or RegExTermEnum and then use the filter with a ConstantScoreQuery. You lose relevancy, but relevancy is an ambiguous concept with wildcards anyway. Using the query parser with a leading wildcard, even if enabled, is almost sure to give you a "T

Re: Leading wildcard query

2006-07-28 Thread Pravin Shinde
Thanx for reply Miles So, avoiding leading wildcard query was design decision for sake of efficiency. Thanx for information. On 7/28/06, Miles Barr <[EMAIL PROTECTED]> wrote: Pravin Shinde wrote: > I am trying to use Leading wildcard query, but I am not able to do it. > Any query with leading w

Re: Leading wildcard query

2006-07-28 Thread Miles Barr
Pravin Shinde wrote: I am trying to use Leading wildcard query, but I am not able to do it. Any query with leading wildcard is failing with lexical error. query = parser.parse( "*hi" ) JavaError: org.apache.lucene.queryParser.ParseException: Lexical error at line 1, column 1. Encountered: "*"