mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-20 07:49:42 +01:00
Revert "* More debug output in FuzzyIndex."
This reverts commit 1d69880b317e92cfedba0d0ab45ca3f6c376049e.
This commit is contained in:
parent
1d69880b31
commit
99c42014b0
@ -88,7 +88,7 @@ FuzzyIndex::~FuzzyIndex()
|
||||
bool
|
||||
FuzzyIndex::wipeIndex()
|
||||
{
|
||||
tDebug() << "Wiping fuzzy index:" << m_lucenePath;
|
||||
tLog( LOGVERBOSE ) << "Wiping fuzzy index:" << m_lucenePath;
|
||||
beginIndexing();
|
||||
endIndexing();
|
||||
|
||||
@ -112,10 +112,10 @@ FuzzyIndex::beginIndexing()
|
||||
|
||||
try
|
||||
{
|
||||
tDebug() << Q_FUNC_INFO << "Starting indexing:" << m_lucenePath;
|
||||
tDebug( LOGVERBOSE ) << Q_FUNC_INFO << "Starting indexing:" << m_lucenePath;
|
||||
if ( m_luceneReader != 0 )
|
||||
{
|
||||
tDebug() << "Deleting old lucene stuff.";
|
||||
tDebug( LOGVERBOSE ) << "Deleting old lucene stuff.";
|
||||
|
||||
m_luceneSearcher->close();
|
||||
m_luceneReader->close();
|
||||
@ -125,7 +125,7 @@ FuzzyIndex::beginIndexing()
|
||||
m_luceneReader = 0;
|
||||
}
|
||||
|
||||
tDebug() << "Creating new index writer.";
|
||||
tDebug( LOGVERBOSE ) << "Creating new index writer.";
|
||||
m_luceneWriter = new IndexWriter( m_luceneDir, m_analyzer, true );
|
||||
}
|
||||
catch( CLuceneError& error )
|
||||
@ -139,7 +139,7 @@ FuzzyIndex::beginIndexing()
|
||||
void
|
||||
FuzzyIndex::endIndexing()
|
||||
{
|
||||
tDebug() << Q_FUNC_INFO << "Finishing indexing:" << m_lucenePath;
|
||||
tDebug( LOGVERBOSE ) << Q_FUNC_INFO << "Finishing indexing:" << m_lucenePath;
|
||||
m_luceneWriter->optimize();
|
||||
m_luceneWriter->close();
|
||||
delete m_luceneWriter;
|
||||
@ -215,7 +215,6 @@ FuzzyIndex::deleteIndex()
|
||||
TomahawkUtils::removeDirectory( m_lucenePath );
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
FuzzyIndex::updateIndex()
|
||||
{
|
||||
|
@ -764,7 +764,6 @@ JSResolverHelper::indexDataFromVariant( const QVariantMap &map, struct Tomahawk:
|
||||
void
|
||||
JSResolverHelper::createFuzzyIndex( const QVariantList& list )
|
||||
{
|
||||
tDebug() << Q_FUNC_INFO;
|
||||
if ( m_resolver->d_func()->fuzzyIndex.isNull() )
|
||||
{
|
||||
m_resolver->d_func()->fuzzyIndex.reset( new FuzzyIndex( m_resolver, m_resolver->d_func()->accountId + ".lucene" , true ) );
|
||||
|
Loading…
x
Reference in New Issue
Block a user