mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-20 07:49:42 +01:00
* Make sure lucene searcher / reader gets initialized.
This commit is contained in:
parent
a461d9b2a2
commit
3ad91db46a
@ -45,6 +45,8 @@ FuzzyIndex::FuzzyIndex( QObject* parent, const QString& filename, bool wipe )
|
||||
{
|
||||
m_analyzer = newLucene<SimpleAnalyzer>();
|
||||
m_luceneDir = FSDirectory::open( m_lucenePath.toStdWString() );
|
||||
m_luceneReader = IndexReader::open( m_luceneDir );
|
||||
m_luceneSearcher = newLucene<IndexSearcher>( m_luceneReader );
|
||||
}
|
||||
catch ( LuceneException& error )
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user