Hi! Alls ???? i have read code of xapian more than one month,i leant a lot from your code both form design of search engine and code details. ???? however, something make me in a puzzle. ? ?? Take? RefCntBase as an example, it seems that it is a "kernel" of xapian, as many classes 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 ___________________________________________________________ ????????????????? http://card.mail.cn.yahoo.com/ -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.xapian.org/pipermail/xapian-devel/attachments/20090414/1cb1edbd/attachment.html>
Hi! Alls i have read code of xapian more than one month,i leant a lot from your code both form design of search engine and code details. however, something make me in a puzzle. Take RefCntBase as an example, it seems that it is a "kernel" of xapian, as many classes 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 _________________________________________________________________ Live Search??????????????? http://www.live.com/?scope=video -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.xapian.org/pipermail/xapian-devel/attachments/20090415/3a2f7060/attachment.html>
Please don't post the same message to both xapian-discuss and xapian-devel. Pick whichever is most appropriate for your message and use that. On Wed, Apr 15, 2009 at 10:46:47AM +0800, ????? wrote:> i have read code of xapian more than one month,i leant a lot from your code > both form design of search engine and code details. > however, something make me in a puzzle. > Take RefCntBase as an example, it seems that it is a "kernel" of xapian, as > many classes inherit from it. But,what is it funtion? why is it so important?It's just an implementation detail - don't worry about it if you are only wanting to use the API. (If you're wanting to understand how Xapian works, it's a base class for objects which we want to reference count).> 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?Did you read this: http://xapian.org/docs/valueranges.html Otherwise, please ask about the specifics of what you want to know. It's much harder to answer such general questions. Cheers, Olly