Displaying 2 results from an estimated 2 matches for "get_terms_end".
2011 Mar 07
1
Set Term Frequency for a Query
...cs/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
...Xapian.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....