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 Object
implements fr.paris.lutece.portal.service.search.SearchIndexer

Directory global indexer


Field Summary
static String INDEXER_NAME
           
static String SHORT_NAME
           
 
Constructor Summary
DirectorySearchIndexer()
           
 
Method Summary
 String getDescription()
          
 org.apache.lucene.document.Document getDocument(Record record, List<IEntry> listContentEntry, List<IEntry> listTitleEntry, 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
 List<org.apache.lucene.document.Document> getDocuments(String recordId)
          
 List<String> getListType()
          
 String getName()
          
 String getSpecificSearchAppUrl()
          
 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 String INDEXER_NAME
See Also:
Constant Field Values

SHORT_NAME

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

DirectorySearchIndexer

public DirectorySearchIndexer()
Method Detail

getName

public String getName()

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

getDescription

public String getDescription()

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

getVersion

public 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 List<String> getListType()

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

getSpecificSearchAppUrl

public String getSpecificSearchAppUrl()

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

getDocuments

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

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

indexDocuments

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

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

getDocument

public org.apache.lucene.document.Document getDocument(Record record,
                                                       List<IEntry> listContentEntry,
                                                       List<IEntry> listTitleEntry,
                                                       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 © 2013 Mairie de Paris. All Rights Reserved.