DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=32353>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=32353 Summary: Documentation Error for FilteredTermEnum Product: Lucene Version: 1.4 Platform: PC OS/Version: Linux Status: NEW Severity: minor Priority: P2 Component: Search AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] As pointed out in http://nagoya.apache.org/eyebrowse/[EMAIL PROTECTED]&msgNo=11034 the documentation of FilteredTermEnum.term() is wrong: it says 'Returns the current Term in the enumeration. Initially invalid, valid after next() called for the first time.' but the implementation of the constructors of the two derived classes (FuzzyTermEnum and WildcardTermEnum) already initializes the object to point to the first match. So calling next() before accessing terms will leave out the first match. So I suggest to replace the second sentance by something like 'Returns null if no Term matches or all terms have been enumerated.' (I checked that for WildcardTermEnum only). Further one might add some note to the docs of the constructors of FuzzyTermEnum and WildcardTermEnum that they will point to the first element of the enumeration (if any). -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]