lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Peter Backlund (JIRA)" <>
Subject [jira] Created: (LUCENE-1291) Allow leading wildcard in table searcher
Date Tue, 20 May 2008 10:12:55 GMT
Allow leading wildcard in table searcher

                 Key: LUCENE-1291
             Project: Lucene - Java
          Issue Type: Wish
    Affects Versions: 2.3.1
            Reporter: Peter Backlund
            Priority: Minor

It would be nice to have a boolean property on TableSearcher for allowing leading wildcard
in query, which could be off by default.

            MultiFieldQueryParser parser = new MultiFieldQueryParser(fields, analyzer);
            Query query = parser.parse(searchString);

+ setter and field for "allowLeadingWildcard"

Snippet is from,
lines 245-246.

Another approach would be to have a protected factory-method for creating the parser, which
can be overridden:

protected Parser createParser(fields, analyzer) {
  return new MultiFieldQueryParser(fields, analyzer);


  Query query = createParser(fields, analyzer).parse(searchString); 

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message