Question about Omega

Bruno Baruffaldi <[email protected]> Sat, 13 Apr 2019 18:44:24 -0300
Newsgroups gmane.comp.search.xapian.devel
Message-ID <CAND-c9N4N6QgJUsTms7AXCqxPVFStz5-aTMt8RnZJ5efd4GP+Q@mail.gmail.com>
--000000000000500b35058670534f
Content-Type: text/plain; charset="UTF-8"

Hello!

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.
- 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?

Comment: FIXME We could be cleverer here and check mtime too when use_ctime
isset - if the ctime has changed but the mtime is unchanged, we can just
update the existing Document and avoid having to re-extract text, etc.

Cheers,
    Bruno.

--000000000000500b35058670534f
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div dir=3D"ltr"><div dir=3D"ltr"><div dir=3D"ltr"><div di=
r=3D"ltr"><div style=3D"font-family:tahoma,sans-serif" class=3D"gmail_defau=
lt"></div><div dir=3D"ltr"><div dir=3D"ltr"><div><div style=3D"font-family:=
tahoma,sans-serif" class=3D"gmail_default">Hello!</div><div style=3D"font-f=
amily:tahoma,sans-serif" class=3D"gmail_default"><br></div><div style=3D"fo=
nt-family:tahoma,sans-serif" class=3D"gmail_default">I am trying to fix the=
 FIX-ME comment at line 556 of &#39;index_file.cc&#39;, but I have a few qu=
estions:</div><div style=3D"font-family:tahoma,sans-serif" class=3D"gmail_d=
efault">- I am not sure of how to update the owner of a document. It is add=
ed to the document through add_boolean_term at line 1249, but I don&#39;t h=
ow to remove it (there is remove_term(), but I am not sure that is what I a=
m looking for) or update it.</div><div style=3D"font-family:tahoma,sans-ser=
if" class=3D"gmail_default">- From DirectoryIterator I can get the owner an=
d group of a file. Is there any other information (that can modify ctime) t=
hat I can get from it?<br></div></div><div><br></div><div><div style=3D"fon=
t-family:tahoma,sans-serif" class=3D"gmail_default">Comment: FIXME We could=
 be cleverer here and check mtime too when use_ctime=20
isset - if the ctime has changed but the mtime is unchanged, we can=20
just update the existing Document and avoid having to re-extract text,=20
etc.</div></div><div style=3D"font-family:tahoma,sans-serif" class=3D"gmail=
_default"><span class=3D"gmail-m_-734714303328595144gmail-il"><br></span></=
div><div style=3D"font-family:tahoma,sans-serif" class=3D"gmail_default"><s=
pan class=3D"gmail-m_-734714303328595144gmail-il">Cheers</span>,</div><div =
style=3D"font-family:tahoma,sans-serif" class=3D"gmail_default">=C2=A0=C2=
=A0=C2=A0 Bruno.<br></div></div></div></div></div></div></div></div>

--000000000000500b35058670534f--