<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Thu, Apr 3, 2014 at 12:06 PM, Vishesh Handa <span dir="ltr"><<a href="mailto:me@vhanda.in" target="_blank">me@vhanda.in</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hey guys<br>
<br>
After the PIM sprint, David, Martin and I discussed searching with respect to<br>
KPeople. We have the following problems -<br>
<br>
1. Searching for a contact gives duplicates since the same contact can exist<br>
in multiple address books.<br>
<br>
2. When searching for a contact you want to be given the final aggregate<br>
contact, this should take the following into consideration -<br>
* Akonadi Contacts<br>
* Telepathy Contacts<br>
* Custom user fields which have been added in the contact<br>
<br>
--<br>
<br>
Currently KPeople has a concept of plugins and does the aggregation, this<br>
aggregation is saved in a simple sqlite db. It's fairly trivial. The<br>
additional custom user-fields are saved in a vcard in a special akonadi<br>
resource.<br>
<br>
The initial idea discussed was for KPeople to aggregate all the contact info<br>
into one vcard, store that, and index it. This would however result in KPeople<br>
having to deal with synchronization issues if a contact is updated in Akonadi<br>
/ somewhere. We don't want to deal with synchronization.<br>
<br>
The final idea is for KPeople to install a special Baloo search plugin which<br>
would search over all the required databases, aggregate the contacts and give<br>
the results. Since everyone is using Xapian to store the index, this should be<br>
do-able. Xapian allows searching over multiple databases and collapsing<br>
multiple results based on some custom criteria.<br></blockquote><div><br></div><div>Why can't KPeople do the search?</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
--<br>
<br>
Another problem is showing extra information during email completion. We could<br>
not figure out a solution for this as email auto-completion is a special case<br>
which has its own custom database.<br></blockquote><div><br></div><div>Same, what's the problem with just using KPeople for completion?</div><div>Excuse my ignorance, but what does Baloo have to do there?</div><div> </div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
--<br>
<br>
Providing a runner for searching these KPeople contacts was also discussed,<br>
however given that KPeople is highly dependent on Telepathy and KDE-PIM, and<br>
Plasma is now on Qt5, the solution is not obvious.<br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
--<br>
Vishesh Handa<br>
_______________________________________________<br>
KDE-Telepathy mailing list<br>
<a href="mailto:KDE-Telepathy@kde.org">KDE-Telepathy@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/kde-telepathy" target="_blank">https://mail.kde.org/mailman/listinfo/kde-telepathy</a><br>
</font></span></blockquote></div></div><div class="gmail_extra"><br></div><div class="gmail_extra">Aleix</div></div>