Displaying 5 results from an estimated 5 matches for "add_valuerangeprocessor".
2009 Nov 15
1
setting ValueRangeProcessor at runtime
...I seem to be running into (what I think is) a
C++ scope issue.
I tried just a simple test to see if I could add 5 VPs in a loop.
Xapian::QueryParser qparser;
Xapian::Query query;
int vp = 0;
while(vp < 5) {
Xapian::StringValueRangeProcessor sproc(vp++);
qparser.add_valuerangeprocessor(&sproc);
}
query = qparser.parse_query(myquery);
That will compile, but when that code executes I get this error:
pure virtual method called
terminate called without an active exception
Abort trap
I *think* what's happening is that the sproc object goes out of scope at the end...
2009 Apr 14
2
questions about xapian
...lasses inherit from it. But,what is it funtion? why is it so important?
???? Another confusion is about Valuerangeprocess. I really want to make clear
differences between valuerange-search and common search in details. I added??
?? Xapian::DateValueRangeProcessor date_proc(2, true, 1930);
??? qp.add_valuerangeprocessor(&date_proc);??
in my code and my code works well. then, I debug it using gdb. however,i can not be
inspired. Is there any important information i did not catch?
would you please give me some advice?
thanks a lot!
baijl
___________________________________________________________...
2009 Apr 14
2
questions about xapian
...lasses inherit from it. But,what is it funtion? why is it so important?
???? Another confusion is about Valuerangeprocess. I really want to make clear
differences between valuerange-search and common search in details. I added??
?? Xapian::DateValueRangeProcessor date_proc(2, true, 1930);
??? qp.add_valuerangeprocessor(&date_proc);??
in my code and my code works well. then, I debug it using gdb. however,i can not be
inspired. Is there any important information i did not catch?
would you please give me some advice?
thanks a lot!
baijl
___________________________________________________________...
2015 Sep 09
2
custom ValueRangeProcessor in Perl?
Hello, I'm using the XS Perl bindings packaged with Debian stable
and am interested in implementing my a custom ValueRangeProcessor
(using DateTimeX::Easy for human-friendly date parsing)
Unfortunately, I'm not sure if it's possible with the
add_valuerangeprocessor API via Perl.
Reading the XS/*ValueRangeProcessor.xs source files, I'm seeing
"process_value_range" methods being defined (but I can't figure out how
they're called); but attempting to define my own classes does not result
in the methods being called when performing a query....
2018 Jul 19
1
choosing between probabilistic and boolean prefixes for terms
...ery_parser};
return $qp if $qp;
# new parser
$qp = Search::Xapian::QueryParser->new;
$qp->set_default_op(OP_AND);
$qp->set_database($self->{xdb});
$qp->set_stemmer($self->stemmer);
$qp->set_stemming_strategy(STEM_SOME);
$qp->set_max_wildcard_expansion(100);
$qp->add_valuerangeprocessor(
Search::Xapian::NumberValueRangeProcessor->new(YYYYMMDD, 'd:'));
$qp->add_valuerangeprocessor(
Search::Xapian::NumberValueRangeProcessor->new(DT, 'dt:'));
In any case, all the code is available via:
git clone https://public-inbox.org/public-inbox