[ https://issues.apache.org/jira/browse/LUCENE-1424?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12643219#action_12643219 ]
Michael McCandless commented on LUCENE-1424: -------------------------------------------- OK, it sounds like we should preserve the rewrite-to-BooleanQuery option for each of these Query classes since there are clear use cases where it makes sense. I do like the idea of adding "constant score capability" to the existing query classes, instead of adding new ConstantScoreXXXQuery classes. I don't really like the REWRITE_GUESS option because it could lead to strange inconsistent results as seen by the end user -- eg prefix1 sorts one way but then a relaxed prefix2 sorts another way. I think a simple static binary choice is good? Couldn't we build this functionality (get/setRewriteMethod(...)) into MultiTermQuery? And then fix those queries that don't already to subclass MultiTermQuery (at least RangeQuery and PrefixQuery)? Finally, I would also prefer non-static methods to instruct QueryParser which rewrite method to use. In fact we already have setUseOldRangeQuery -- maybe change this to setUseConstantScoreRewriteMethod (defaulting to true)? > Add ConstantScorePrefixQuery and ConstantScoreWildcardQuery > ----------------------------------------------------------- > > Key: LUCENE-1424 > URL: https://issues.apache.org/jira/browse/LUCENE-1424 > Project: Lucene - Java > Issue Type: New Feature > Reporter: Mark Miller > Assignee: Michael McCandless > Priority: Minor > Attachments: LUCENE-1424.patch, LUCENE-1424.patch > > > If we want to be able to highlight these queries, they need to be added to > Lucene core or contrib (solr's WildCardFilter can be used to create the > ConstantScoreWildcardQuery). They are very useful anyway. -- 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]