You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Peter Backlund (JIRA)" <ji...@apache.org> on 2008/05/20 12:12:55 UTC
[jira] Created: (LUCENE-1291) Allow leading wildcard in table
searcher
Allow leading wildcard in table searcher
----------------------------------------
Key: LUCENE-1291
URL: https://issues.apache.org/jira/browse/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);
parser.setAllowLeadingWildcard(this.allowLeadingWildcard);
Query query = parser.parse(searchString);
+ setter and field for "allowLeadingWildcard"
Snippet is from http://www.koders.com/java/fid94A4BBC5CC6609930A88583480AA66B32EBB08E3.aspx?s=TableSearcher#L53, 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);
}
and
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: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org
[jira] Updated: (LUCENE-1291) Allow leading wildcard in table
searcher
Posted by "Hoss Man (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LUCENE-1291?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Hoss Man updated LUCENE-1291:
-----------------------------
Component/s: contrib/*
for anyone else who may be confused: this seems to relate to the contrib/swing package
> Allow leading wildcard in table searcher
> ----------------------------------------
>
> Key: LUCENE-1291
> URL: https://issues.apache.org/jira/browse/LUCENE-1291
> Project: Lucene - Java
> Issue Type: Wish
> Components: contrib/*
> 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);
> parser.setAllowLeadingWildcard(this.allowLeadingWildcard);
> Query query = parser.parse(searchString);
> + setter and field for "allowLeadingWildcard"
> Snippet is from http://www.koders.com/java/fid94A4BBC5CC6609930A88583480AA66B32EBB08E3.aspx?s=TableSearcher#L53, 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);
> }
> and
> 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: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org
[jira] Commented: (LUCENE-1291) Allow leading wildcard in table
searcher
Posted by "Peter Backlund (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LUCENE-1291?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12598631#action_12598631 ]
Peter Backlund commented on LUCENE-1291:
----------------------------------------
Yeah, sorry. The class in question is
org.apache.lucene.swing.models.TableSearcher
> Allow leading wildcard in table searcher
> ----------------------------------------
>
> Key: LUCENE-1291
> URL: https://issues.apache.org/jira/browse/LUCENE-1291
> Project: Lucene - Java
> Issue Type: Wish
> Components: contrib/*
> 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);
> parser.setAllowLeadingWildcard(this.allowLeadingWildcard);
> Query query = parser.parse(searchString);
> + setter and field for "allowLeadingWildcard"
> Snippet is from http://www.koders.com/java/fid94A4BBC5CC6609930A88583480AA66B32EBB08E3.aspx?s=TableSearcher#L53, 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);
> }
> and
> 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: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org