[Xapian-discuss] get_matches_estimated and value range
Luca Barbieri
lucabarb at gmail.com
Tue Oct 5 11:04:36 BST 2010
Hello, i've some problems with my query.
I have a database where the documents have a date stored to value 0.
I need to know the trend for a boolean query: example, I want to know how
may documents are indexed by "foo" in different value ranges.
I proceed building the query:
Xapian::Query((foo:(pos=1) AND VALUE_RANGE 0 1286264160 1286264249))
and
Xapian::Query((foo:(pos=1) AND VALUE_RANGE 0 1286264250 1286264339))
and so on...
If I try to evaluate a quick estimate with:
matches = enquire.get_mset(0, 0)
matches.get_matches_estimated();
is it normal that the value range in my query is not evaluated? For each
range i try, the estimated value is always the same, giving me a flat
report.
--
---------------------
Luca Barbieri
More information about the Xapian-discuss
mailing list