[ https://issues.apache.org/jira/browse/LUCENE-4605?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Shai Erera updated LUCENE-4605: ------------------------------- Attachment: LUCENE-4605.patch Patch adds DocsEnum.FLAG_NONE with proper javadocs. I also modified all places in the code that I could find which passed 0, to pass the new constant. Basically a trivial change. 'core' tests passed. If there are no objections, I will commit it later today. > Add FLAGS_NONE to DocsEnum and DocsAndPositionsEnum > --------------------------------------------------- > > Key: LUCENE-4605 > URL: https://issues.apache.org/jira/browse/LUCENE-4605 > Project: Lucene - Core > Issue Type: Improvement > Components: core/index > Reporter: Shai Erera > Assignee: Shai Erera > Priority: Minor > Fix For: 4.1, 5.0 > > Attachments: LUCENE-4605.patch > > > Add a convenience constants FLAGS_NONE to DocsEnum and DocsAndPositionsEnum. > Today, if someone e.g. wants to get the docs only, he needs to pass 0 as the > flags, but the value of 0 is not documented anywhere. I had to dig in the > code the verify that indeed that's the value. > I'll attach a patch later. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org