Re: API changes in libbeagle application



> >   Just a reminder that, when you set the source/hitttype/mimetype of a
> > query as explained below, note the WHITESPACE _before_ "type:AAA" etc.
> > i.e. beagle_query_add_text (query, " type:AAA") instead of
> > beagle_query_add_text (query, "type:AAA"). All that is happening is we
> > are adding another query term "type:AAA" at the end of the actual
> > query text.
>
> This is kind of a lame API detail.  Maybe we can make
> beagle_query_add_text() smarter to handle being called multiple times.

I thought so and checked. Indeed beagle_query_add_text() creates a new
QueryPart everytime - so no need for the whitespace lamespec. Sorry
for the confusion.

- dBera

-- 
-----------------------------------------------------
Debajyoti Bera @ http://dtecht.blogspot.com
beagle / KDE fan
Mandriva / Inspiron-1100 user


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]