I am playing around with clucene under mac osx with xcode and have some problems with the demo application, maybe someone can help me with that 🙂
The demo code comes with ‘document’ and ‘query’ arrays:
const TCHAR* docs[] = {
_T("a b c d e"),
...
_T("a c e a b c"),
NULL
};
const TCHAR* queries[] = {
_T("a b"),
...
_T("\"a c e\""),
NULL
};
which are used for indexing and as queries which work good as long as i comment out the _tprintf lines like:
_tprintf(_T("Query: %s\n"), qryInfo);
so _tprintf seems to be unrecognized by my system and if I use tprintf xcode says there is no matching function for call to tprintf.
So how do I print TCHARs correctly? CLucene needs TCHAR names for Fields.
Thanks in advance!
On Windows,
TCHARis eitherwchar_tor plainchardepending on your project settings.Likewise,
_tprintfis eitherwprintfofprintfto match the choice of characters.On OSX you will likely have to make this choice yourself, perhaps