mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-07-31 03:10:12 +02:00
* Empty album names are valid, but not indexable.
This commit is contained in:
@@ -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 );
|
||||
}
|
||||
|
Reference in New Issue
Block a user