Re: [PATCH 2/2] n_m_remove_indexed_terms: reduce number of Xapian API calls.

2019-05-23 Thread David Bremner
David Bremner writes: > Previously this functioned scanned every term attached to a given > Xapian document. It turns out we know how to read only the terms we > need to preserve (and we might have already done so). This commit > replaces many calls to Xapian::Document::remove_term with one call

Re: [PATCH 2/2] n_m_remove_indexed_terms: reduce number of Xapian API calls.

2019-05-22 Thread David Bremner
David Bremner writes: > Previously this functioned scanned every term attached to a given > Xapian document. It turns out we know how to read only the terms we > need to preserve (and we might have already done so). This commit > replaces many calls to Xapian::Document::remove_term with one call

[PATCH 2/2] n_m_remove_indexed_terms: reduce number of Xapian API calls.

2019-04-15 Thread David Bremner
Previously this functioned scanned every term attached to a given Xapian document. It turns out we know how to read only the terms we need to preserve (and we might have already done so). This commit replaces many calls to Xapian::Document::remove_term with one call to ::clear_terms, and a (typical