beagle r3526 - trunk/beagle/beagled
- From: dbera svn gnome org
- To: svn-commits-list gnome org
- Subject: beagle r3526 - trunk/beagle/beagled
- Date: Fri, 2 Mar 2007 23:25:02 +0000 (GMT)
Author: dbera
Date: 2007-03-02 23:25:01 +0000 (Fri, 02 Mar 2007)
New Revision: 3526
ViewCVS link: http://svn.gnome.org/viewcvs/beagle?rev=3526&view=rev
Modified:
trunk/beagle/beagled/LuceneCommon.cs
trunk/beagle/beagled/LuceneQueryingDriver.cs
Log:
While reverse walking the hits, we need to apply uri_filter. Otherwise, we might end up with max_results number of hits after the short-circuit some of which may not pass the uri_filter. Applying the uri_filter requires getting the uri - which requires retrieving the lucene document. Getting the full lucene document is expensive, so we use the patched Document(id,fields[]) constructor to only get the specific fields. Do the same for the non-short-circuit code when we go through all the matched hits finding the most recent ones. The net gain is correct results but with roughly same (or little less) time.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]