search for: op_value_g

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

Did you mean: op_value_ge
2017 Sep 12
2
perl bindings to Xapian::Query
...alue) 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 matching function for overloaded 'new_Query' at /usr/local/lib/perl5/site_perl/Xapian.pm line 1282. I see in Xapian.pm where Xapi...
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( $query = Xapian::Query->new(OP_VALUE_GE, 0, "two") ); But if I change that...
2011 May 23
1
More relevance for recent documents
...documents with better scoring. I was trying to add search query using AND_MAYBE, which should use relevance from both subqueries, but it didnt add any benefit to the resalts which are match by this subquery $query = new XapianQuery(XapianQuery::OP_AND_MAYBE, $query, new XapianQuery(XapianQuery::OP_VALUE_GE, self::DATE, date('Ymd000000', strtotime("- 1 year")))); Is there some way how to give more relevance to the recent documents? Would be solution possible in PHP where is still some problem with subclasing Xapian classes? I will be glad for any suggestions Thank you for your ti...
2010 May 22
1
How to search documents with certain values
Hi all, I am creating Xapian documents and adding a unix timestamp to each document as a value using the doc.add_value method. When I search my Xapian database, I want the option to only search documents with a timestamp within the last year. Is there a way to search across documents with a value greater than a specified value string? Or is there a better way of doing something like this? Any
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