On Sat, Apr 13, 2019 at 06:44:24PM -0300, Bruno Baruffaldi
wrote:> I am trying to fix the FIX-ME comment at line 556 of
'index_file.cc', but I
> have a few questions:
> - I am not sure of how to update the owner of a document. It is added to
> the document through add_boolean_term at line 1249, but I don't how to
> remove it (there is remove_term(), but I am not sure that is what I am
> looking for) or update it.
Yes, remove_term() works however the term was added (add_boolean_term()
is really just a convenience wrapper for add_term() with wdf_inc set
to 0 since you don't want filter terms to count towards the document
length).
You'll need to look at the document's termlist to see what the currently
recorded owner is.
> - From DirectoryIterator I can get the owner and group of a file. Is there
> any other information (that can modify ctime) that I can get from it?
I think those are all.
Cheers,
Olly