public class DirectorySearchIndexer extends Object implements fr.paris.lutece.portal.service.search.SearchIndexer
Modifier and Type | Field and Description |
---|---|
static String |
INDEXER_NAME |
static String |
SHORT_NAME |
Constructor and Description |
---|
DirectorySearchIndexer() |
Modifier and Type | Method and Description |
---|---|
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() |
public static final String INDEXER_NAME
public static final String SHORT_NAME
public String getName()
getName
in interface fr.paris.lutece.portal.service.search.SearchIndexer
public String getDescription()
getDescription
in interface fr.paris.lutece.portal.service.search.SearchIndexer
public String getVersion()
getVersion
in interface fr.paris.lutece.portal.service.search.SearchIndexer
public boolean isEnable()
isEnable
in interface fr.paris.lutece.portal.service.search.SearchIndexer
public List<String> getListType()
getListType
in interface fr.paris.lutece.portal.service.search.SearchIndexer
public String getSpecificSearchAppUrl()
getSpecificSearchAppUrl
in interface fr.paris.lutece.portal.service.search.SearchIndexer
public List<org.apache.lucene.document.Document> getDocuments(String recordId) throws IOException, InterruptedException, fr.paris.lutece.portal.service.message.SiteMessageException
getDocuments
in interface fr.paris.lutece.portal.service.search.SearchIndexer
IOException
InterruptedException
fr.paris.lutece.portal.service.message.SiteMessageException
public void indexDocuments() throws IOException, InterruptedException, fr.paris.lutece.portal.service.message.SiteMessageException
indexDocuments
in interface fr.paris.lutece.portal.service.search.SearchIndexer
IOException
InterruptedException
fr.paris.lutece.portal.service.message.SiteMessageException
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)
record
- the record to convert into a documentlistContentEntry
- the entries in this record that are marked as is_indexedlistTitleEntry
- the entries in this record that are marked as is_indexed_as_titlelistSummaryEntry
- the entries in this record that are marked as is_indexed_as_summaryplugin
- the plugin objectCopyright © 2020 City of Paris. All rights reserved.