I suggest a convention for classes to make from_doc() the first function since this documents the relationship between the class variables and the lucene fields.
Woe to those who call bad good and good bad -- Isaiah 5:20
Following the Old Testament, not evil modern culture
I am not sure. The new() function is the most important in my opinion because it shows what we can do with the model object. I don't like to see the new() function at the end of the source file.
new() wouldn't be at the end, it would be second. Think of a Java class. The member variables are first. from_doc() is like this part of the Java code.
Woe to those who call bad good and good bad -- Isaiah 5:20
Following the Old Testament, not evil modern culture