https://defect.opensolaris.org/bz/show_bug.cgi?id=16076
Summary: problem of ELFAnalyzer in opengrok 0.9
Classification: Development
Product: opengrok
Version: unspecified
Platform: ANY/Generic
OS/Version: All
Status: NEW
Severity: normal
Priority: P4
Component: analyzer
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected],
[email protected]
Depends on: 10440
--- Comment #0 from [email protected] 2010-05-26 11:07:52 UTC ---
I tried using ELFAnalyzer in opengrok 0.9, however, "full" field is missing in
generated index. The problem is in analyze() method:
....
if (len> 0) {
doc.add(new Field("full", " ", Field.Store.YES, Field.Index.ANALYZED));
....
In fact, the value of "len" is never set.
Suggested fix:
add "len = content.length();" at the end of parseELF() method, see below:
public void parseELF(FileInputStream f) throws IOException {
....
content = sb.toString();
+++ len = content.length();
}
Thanks,
Xinfeng Liu
--
Configure bugmail: https://defect.opensolaris.org/bz/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
opengrok-dev mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opengrok-dev