public final class AnnounceSearchService extends Object
Modifier and Type | Method and Description |
---|---|
void |
addIndexerAction(int nIdAnnounce,
int nIdTask,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Add Indexer Action to perform on a record
|
static String |
formatPriceForIndexer(double dPrice)
Format a price for the indexer
|
static String |
formatPriceForIndexer(int nPrice)
Format a price for the indexer
|
List<IndexerAction> |
getAllIndexerActionByTask(int nIdTask,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
return a list of IndexerAction by task key
|
org.apache.lucene.analysis.Analyzer |
getAnalyzer()
Get the analyzed of this search service
|
static String |
getFormatedPriceString(String strPrice)
Format a numerous string
|
static AnnounceSearchService |
getInstance()
Get the HelpdeskSearchService instance
|
org.apache.lucene.search.IndexSearcher |
getSearcher()
return searcher
|
int |
getSearchResults(AnnounceSearchFilter filter,
int nPageNumber,
int nItemsPerPage,
List<Integer> listIdAnnounces)
Return search results
|
int |
getSearchResultsBis(AnnounceSearchFilter filter,
int nPageNumber,
int nItemsPerPage,
List<Announce> listAnnouncesResults,
AnnounceSort anSort) |
String |
processIndexing(boolean bCreate)
Process indexing
|
void |
removeIndexerAction(int nIdAction,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove a Indexer Action
|
public static AnnounceSearchService getInstance()
AnnounceSearchService
public int getSearchResults(AnnounceSearchFilter filter, int nPageNumber, int nItemsPerPage, List<Integer> listIdAnnounces)
filter
- The search filternPageNumber
- The current pagenItemsPerPage
- The number of items per page to getlistIdAnnounces
- Results as a collection of id of announcespublic int getSearchResultsBis(AnnounceSearchFilter filter, int nPageNumber, int nItemsPerPage, List<Announce> listAnnouncesResults, AnnounceSort anSort)
public org.apache.lucene.search.IndexSearcher getSearcher()
public String processIndexing(boolean bCreate)
bCreate
- true for start full indexing false for begin incremental indexingpublic void addIndexerAction(int nIdAnnounce, int nIdTask, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdAnnounce
- announce idnIdTask
- the key of the action to doplugin
- the pluginpublic void removeIndexerAction(int nIdAction, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdAction
- the key of the action to removeplugin
- the pluginpublic List<IndexerAction> getAllIndexerActionByTask(int nIdTask, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdTask
- the task keyplugin
- the pluginpublic org.apache.lucene.analysis.Analyzer getAnalyzer()
public static String formatPriceForIndexer(double dPrice)
dPrice
- The price to formatpublic static String getFormatedPriceString(String strPrice)
strPrice
- The pricepublic static String formatPriceForIndexer(int nPrice)
nPrice
- The price to formatCopyright © 2019 City of Paris. All rights reserved.