org.musicontroller.core.searching
Class Indexer
java.lang.Object
org.musicontroller.core.searching.Indexer
public class Indexer
- extends java.lang.Object
The Indexer periodically scans the database, and updates the Lucene-index.
The 'changed'-field of all Documents, contains the 'changed'-property of the
object. This is used to see if the object has been changed since the last indexation.
Only changed objects are updated in the index to keep disk-io as low as possible. This
also means that we have to be sure that the changed-property of all indexed objects
really is what is says!
- Version:
- $Id: Indexer.java,v 1.1 2010/03/16 18:55:42 varienaja Exp $
- Author:
- Varienaja
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Indexer
public Indexer(Dao dao)
reindexAll
public void reindexAll()
- Reindexes all items. Reindexing is done lazily, items that did not change
since the last index-update are not processed.
reindexSong
public org.apache.lucene.document.Document reindexSong(Song song)
reindexBand
public org.apache.lucene.document.Document reindexBand(Band band)
reindexArtist
public org.apache.lucene.document.Document reindexArtist(Artist artist)
reindexInstrument
public org.apache.lucene.document.Document reindexInstrument(Instrument instrument)
reindexKeyword
public org.apache.lucene.document.Document reindexKeyword(Keyword keyword)
reindexPlaylist
public org.apache.lucene.document.Document reindexPlaylist(Playlist playlist)
Copyright © 2010 A.J.V.. All Rights Reserved.