Skip to content
Snippets Groups Projects
Commit 44a6a5ad authored by anttil's avatar anttil
Browse files

Fix indexing related warnings

SVN: 25523
parent e17561b6
No related branches found
No related tags found
No related merge requests found
...@@ -24,6 +24,7 @@ import org.apache.commons.io.FileUtils; ...@@ -24,6 +24,7 @@ import org.apache.commons.io.FileUtils;
import org.apache.commons.lang.time.StopWatch; import org.apache.commons.lang.time.StopWatch;
import org.apache.log4j.Logger; import org.apache.log4j.Logger;
import org.apache.lucene.index.IndexWriter; import org.apache.lucene.index.IndexWriter;
import org.apache.lucene.index.IndexWriterConfig;
import org.hibernate.Session; import org.hibernate.Session;
import org.hibernate.SessionFactory; import org.hibernate.SessionFactory;
import org.hibernate.search.FullTextSession; import org.hibernate.search.FullTextSession;
...@@ -108,7 +109,7 @@ public final class FullTextIndexerRunnable extends HibernateDaoSupport implement ...@@ -108,7 +109,7 @@ public final class FullTextIndexerRunnable extends HibernateDaoSupport implement
try try
{ {
// timeout exceptions were observed for the default timeout when database was bigger // timeout exceptions were observed for the default timeout when database was bigger
IndexWriter.setDefaultWriteLockTimeout(3000); IndexWriterConfig.setDefaultWriteLockTimeout(3000);
final File indexBase = new File(context.getIndexBase()); final File indexBase = new File(context.getIndexBase());
final File markerFile = new File(indexBase, FULL_TEXT_INDEX_MARKER_FILENAME); final File markerFile = new File(indexBase, FULL_TEXT_INDEX_MARKER_FILENAME);
final Session session = getSession(); final Session session = getSession();
......
...@@ -54,6 +54,7 @@ public final class SearchAnalyzer extends Analyzer ...@@ -54,6 +54,7 @@ public final class SearchAnalyzer extends Analyzer
private static class WordAndCodeTokenizer extends CharTokenizer private static class WordAndCodeTokenizer extends CharTokenizer
{ {
@SuppressWarnings("deprecation")
public WordAndCodeTokenizer(Reader input) public WordAndCodeTokenizer(Reader input)
{ {
super(input); super(input);
......
...@@ -76,6 +76,7 @@ class IndexFieldNameHelper ...@@ -76,6 +76,7 @@ class IndexFieldNameHelper
case DATA_SET_CHILD: case DATA_SET_CHILD:
case SAMPLE_PARENT: case SAMPLE_PARENT:
case SAMPLE_CHILD: case SAMPLE_CHILD:
case MATERIAL:
// parent-child is a many-to-many connection - it is not handled by lucene index // parent-child is a many-to-many connection - it is not handled by lucene index
throw createAssociationNotHandledException(entityKind, associationKind); throw createAssociationNotHandledException(entityKind, associationKind);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment