search for: get_terms_begin

Displaying 2 results from an estimated 2 matches for "get_terms_begin".

2011 Mar 07
1
Set Term Frequency for a Query
...wqf_=1, Xapian::termpos<http://xapian.org/docs/apidoc/html/namespaceXapian.html#e5a16f073d0c8ed54085a9de07248d45>pos_=0) : Xapian::Query query_test(Xapian::Query::OP_OR, Xapian::Query("Bonjour", 10), Xapian::Query("Hello", 5)); Xapian::TermIterator qt = query_test.get_terms_begin(); while (qt != query_test.get_terms_end()) { cout<<*qt<<" "<<qt.get_wdf()<<" "; qt++; } returns : Bonjour 1 Hello 1 I don't understand why get_wdf returns "1" and not Bonjour 10 Hello 5 ? Regards, pa.
2011 Apr 19
0
Merge databases
...mpos<http://xapian.org/docs/apidoc/html/namespaceXapian.html#e5a16f073d0c8ed54085a9de07248d45>pos_=0) : > > Xapian::Query query_test(Xapian::Query::OP_OR, Xapian::Query("Bonjour", > 10), Xapian::Query("Hello", 5)); > Xapian::TermIterator qt = query_test.get_terms_begin(); > while (qt != query_test.get_terms_end()) > { > cout<<*qt<<" "<<qt.get_wdf()<<" "; > qt++; > } > > returns : Bonjour 1 Hello 1 > > I don't understand why get_wdf returns "1" and not Bonj...