Skip to content
This repository has been archived by the owner on Nov 14, 2018. It is now read-only.

Issue 4640. Search in Cyrillic and reindex work #1548

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion search_lucene/appinfo/update.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,11 @@
)
');
$stmt->execute();
}
}

if (version_compare($currentVersion, '0.5.3', '<')) {
//force reindexing of files
$stmt = OCP\DB::prepare('DELETE FROM `*PREFIX*lucene_status` WHERE 1=1');
$stmt->execute();
}

2 changes: 1 addition & 1 deletion search_lucene/appinfo/version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.5.2
0.5.3
2 changes: 1 addition & 1 deletion search_lucene/lib/lucene.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public static function openOrCreate($user = null) {
try {

\Zend_Search_Lucene_Analysis_Analyzer::setDefault(
new \Zend_Search_Lucene_Analysis_Analyzer_Common_TextNum_CaseInsensitive()
new \Zend_Search_Lucene_Analysis_Analyzer_Common_Utf8Num_CaseInsensitive()
); //let lucene search for numbers as well as words

// Create index
Expand Down