search for: datefilt

Displaying 5 results from an estimated 5 matches for "datefilt".

Did you mean: datefile
2006 Sep 11
1
Using a datefilter with caching
I''m trying to use a DateFilter to speed up some searches. The situation is that a have an index with 200 000+ documents and I want to run a few thousand alerts (basically stored searches) on only a small portion of the index (documents added the last hour). Is datefilter the best solution for the situation described above?...
2012 Sep 16
1
possible TZ bug in parseISO8601 - "Error in if (length(c(year, month, day, hour, min, sec)) == 6 && c(year, : [...]"
...bie status to *reasonably* comfortable with it. Here's an issue I just cannot solve however as it appears to be some kind of bug in R itself. But I won't claim that for sure. I have a function as follows: FindHighRow <- function(searchVector, highColumnIndex, thisDate, nextDate) { dateFilter <- GetDateRangeString(thisDate,nextDate) filtered <- searchVector[dateFilter] returnRow <- filtered[which.max(filtered[,highColumnIndex])] returnRow } Running the lines BY HAND works fine. But as soon as I call it as a function (passing in *exactly* the same values - and I have...
2017 Sep 12
2
perl bindings to Xapian::Query
...e to make a query myself, so I can filter results by a specified value (in this case restricting by epoch time after a certain value) My code looks like this, and compiles, and appears like it should work according to the perl source:     my $query = $qp->parse_query($querystr);     if ($datefilter) {         my $filterepoch = time() - ($datefilter * 60 * 60 * 24);         my $filterquery = Xapian::Query->new(OP_VALUE_GE,I_DATE,$filterepoch);         $query = Xapian::Query->new(OP_FILTER,$query,$filterquery);     } This appears to die on Xapian::Query->new with   No matchin...
2016 May 16
2
Weighting recent results
I was thinking about this some more: Is there a reason I can't just weight by some function of recency at indexing time? $weight = get_weight_based_on_recency(...); $tg->index_text($txt,$weight); If I wanted to allow the user the option of searching either in recency-weighted mode or not, I could index each document into 2 different databases, one with and one without. This avoids
2017 Sep 12
0
perl bindings to Xapian::Query
On Tue, Sep 12, 2017 at 04:47:52PM -0400, Alex Aminoff wrote: >         my $filterepoch = time() - ($datefilter * 60 * 60 * 24); >         my $filterquery = > Xapian::Query->new(OP_VALUE_GE,I_DATE,$filterepoch); I think your issue here is that $filterepoch is a number rather than a string (a Perl scalar can have different representations internally). In t/valuerange.t this testcase works: | ok(...