ikm wrote:No one's working on it right now. If someone wants to, that someone's welcome.
ikm wrote:Well, here's my proposal: I am willing to implement the dictionary crawling required to perform the FTS indexing, if someone (wink, wink!) is willing to implement the GUI for indexing and searching (using Xapian as a backend).
Dictionary::Class & d = ..... // Obtain a dictionary instance from somewhere
if ( d.isCrawlingSupported() )
{
printf( "Gonna crawl it!\n" );
File::Class f( "/tmp/crawled.txt", "wb" );
sptr< Dictionary::Crawler > crw = d.crawl();
vector< string > headwords;
string body;
while( crw->fetchNextArticle( headwords, body ) )
{
for ( int x = 0; x < headwords.size(); ++x )
{
string const & str = headwords[ x ];
f.write( str.c_str(), str.size() );
f.write( "\n", 1 );
}
f.write( body.c_str(), body.size() );
f.write( "\n", 1 );
}
printf( "Done!\n" );
}
}
Nazar wrote:Well, it seems Konstantin has done his part as prompt as one could only wish. But what comes next? We want our full-text search!!! lol.
Users browsing this forum: No registered users and 45 guests