fr.paris.lutece.plugins.directory.service.search
Class DirectorySearchIndexer

java.lang.Object
  extended by fr.paris.lutece.plugins.directory.service.search.DirectorySearchIndexer
All Implemented Interfaces:
fr.paris.lutece.portal.service.search.SearchIndexer

public class DirectorySearchIndexer
extends java.lang.Object
implements fr.paris.lutece.portal.service.search.SearchIndexer

Directory global indexer


Field Summary
static java.lang.String INDEXER_NAME
           
static java.lang.String SHORT_NAME
           
 
Constructor Summary
DirectorySearchIndexer()
           
 
Method Summary
 java.lang.String getDescription()
          
 org.apache.lucene.document.Document getDocument(Record record, java.util.List<IEntry> listContentEntry, java.util.List<IEntry> listTitleEntry, java.util.List<IEntry> listSummaryEntry, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Builds a document which will be used by Lucene during the indexing of this record
 java.util.List<org.apache.lucene.document.Document> getDocuments(java.lang.String recordId)
          
 java.util.List<java.lang.String> getListType()
          
 java.lang.String getName()
          
 java.lang.String getSpecificSearchAppUrl()
          
 java.lang.String getVersion()
          
 void indexDocuments()
          
 boolean isEnable()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INDEXER_NAME

public static final java.lang.String INDEXER_NAME
See Also:
Constant Field Values

SHORT_NAME

public static final java.lang.String SHORT_NAME
See Also:
Constant Field Values
Constructor Detail

DirectorySearchIndexer

public DirectorySearchIndexer()
Method Detail

getName

public java.lang.String getName()

Specified by:
getName in interface fr.paris.lutece.portal.service.search.SearchIndexer

getDescription

public java.lang.String getDescription()

Specified by:
getDescription in interface fr.paris.lutece.portal.service.search.SearchIndexer

getVersion

public java.lang.String getVersion()

Specified by:
getVersion in interface fr.paris.lutece.portal.service.search.SearchIndexer

isEnable

public boolean isEnable()

Specified by:
isEnable in interface fr.paris.lutece.portal.service.search.SearchIndexer

getListType

public java.util.List<java.lang.String> getListType()

Specified by:
getListType in interface fr.paris.lutece.portal.service.search.SearchIndexer

getSpecificSearchAppUrl

public java.lang.String getSpecificSearchAppUrl()

Specified by:
getSpecificSearchAppUrl in interface fr.paris.lutece.portal.service.search.SearchIndexer

getDocuments

public java.util.List<org.apache.lucene.document.Document> getDocuments(java.lang.String recordId)
                                                                 throws java.io.IOException,
                                                                        java.lang.InterruptedException,
                                                                        fr.paris.lutece.portal.service.message.SiteMessageException

Specified by:
getDocuments in interface fr.paris.lutece.portal.service.search.SearchIndexer
Throws:
java.io.IOException
java.lang.InterruptedException
fr.paris.lutece.portal.service.message.SiteMessageException

indexDocuments

public void indexDocuments()
                    throws java.io.IOException,
                           java.lang.InterruptedException,
                           fr.paris.lutece.portal.service.message.SiteMessageException

Specified by:
indexDocuments in interface fr.paris.lutece.portal.service.search.SearchIndexer
Throws:
java.io.IOException
java.lang.InterruptedException
fr.paris.lutece.portal.service.message.SiteMessageException

getDocument

public org.apache.lucene.document.Document getDocument(Record record,
                                                       java.util.List<IEntry> listContentEntry,
                                                       java.util.List<IEntry> listTitleEntry,
                                                       java.util.List<IEntry> listSummaryEntry,
                                                       fr.paris.lutece.portal.service.plugin.Plugin plugin)
Builds a document which will be used by Lucene during the indexing of this record

Parameters:
record - the record to convert into a document
listContentEntry - the entries in this record that are marked as is_indexed
listTitleEntry - the entries in this record that are marked as is_indexed_as_title
listSummaryEntry - the entries in this record that are marked as is_indexed_as_summary
plugin - the plugin object
Returns:
a lucene document filled with the record data


Copyright © 2011 Mairie de Paris. All Rights Reserved.