1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-04-22 00:42:04 +02:00

* Empty album names are valid, but not indexable.

This commit is contained in:
Christian Muehlhaeuser 2013-05-15 14:57:44 +02:00
parent 1c48491f41
commit 4b6064873f
2 changed files with 2 additions and 3 deletions

@ -83,8 +83,7 @@ DatabaseCommand_UpdateSearchIndex::exec( DatabaseImpl* db )
ida.id = q.value( 0 ).toUInt();
ida.album = q.value( 1 ).toString();
if ( !ida.album.isEmpty() )
db->m_fuzzyIndex->appendFields( ida );
db->m_fuzzyIndex->appendFields( ida );
}
tDebug( LOGVERBOSE ) << "Building index finished.";

@ -181,7 +181,7 @@ FuzzyIndex::appendFields( const IndexData& data )
Field::STORE_YES | Field::INDEX_NO ) ) );
}
else
Q_ASSERT( false );
return;
m_luceneWriter->addDocument( &doc );
}