[ https://issues.apache.org/jira/browse/LUCENE-476?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12660593#action_12660593 ]
Mark Miller commented on LUCENE-476: ------------------------------------ {quote} Could the getClausesCount() method be called getQueryClausesCount() ? I'm working on adding filter clauses, and that involves a.o. renaming the (private) clauses to queryClauses, and adding a private filterClauses. Later, with a getQueryClausesCount() method, a getFilterClausesCount() method would also be appropriate for such filter clauses. And similar to a collection view of the query clauses, a collection view of the filter clauses could be added then.{/quote} I've run across that issue a couple of times and I am really looking forward to it! Certainly an interesting idea. I think we should deal with this in that patch as you need it, or create a new issue though. I'd like to get these old guys cleared out a bit. If we have a "clauses" method now, perhaps we can just add "filteredClauses". > BooleanQuery add public method that returns number of clauses this query > ------------------------------------------------------------------------ > > Key: LUCENE-476 > URL: https://issues.apache.org/jira/browse/LUCENE-476 > Project: Lucene - Java > Issue Type: Improvement > Components: Search > Reporter: Volodymyr Bychkoviak > Priority: Minor > Attachments: BooleanQuery.diff > > > BooleanQuery add public method getClausesCount() that returns number of > clauses this query. > current ways of getting clauses count are: > 1). > int clausesCount = booleanQuery.getClauses().length; > or -- 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-unsubscr...@lucene.apache.org For additional commands, e-mail: java-dev-h...@lucene.apache.org