Dear CLucene users/developers, in the comparable-storage branch, I have implemented a template class ComparableTools to extend NumberTools with the possibility of combining multiple numerical values into one field. The NumberTools functionality is mimicked by ComparableTools<int64_t>, but through ComparableTools<std::pair<first_type,second_type> >, multiple numbers can be combined while keeping the ordering behavior. This can be used to implement use cases like dates (std::pair<std::pair<int64_t,int64_t>,int64_t> with first.first being the year, first.second the month and second the day of the month), but is not limited to that.
Thoughts: * provide specializations for smaller or unsigned integer types, storing them more efficiently * provide support for boost::fusion types to allow more convenient usage of large n-tuples Through the generic mapping of the pure ordering trait for n-tuples into CLucene, I also hope to gain some insights on the mapping of other mathematical traits into CLucene, for example to allow GIS querying. As always, comments are highly appreciated. Best regards, Isidor ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ CLucene-developers mailing list CLucene-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/clucene-developers