public class FullTextSearchEngine extends Object implements com.gisgraphy.fulltext.IFullTextSearchEngine
IFullTextSearchEngine
Modifier and Type | Field and Description |
---|---|
static boolean |
disableLogging
very usefull when import is running
|
protected static org.slf4j.Logger |
logger |
Constructor and Description |
---|
FullTextSearchEngine(org.apache.commons.httpclient.MultiThreadedHttpConnectionManager multiThreadedHttpConnectionManager) |
Modifier and Type | Method and Description |
---|---|
void |
executeAndSerialize(com.gisgraphy.fulltext.FulltextQuery query,
OutputStream outputStream) |
com.gisgraphy.fulltext.FulltextResultsDto |
executeQuery(com.gisgraphy.fulltext.FulltextQuery query) |
List<? extends GisFeature> |
executeQueryToDatabaseObjects(com.gisgraphy.fulltext.FulltextQuery query) |
String |
executeQueryToString(com.gisgraphy.fulltext.FulltextQuery query) |
String |
getURL() |
boolean |
isAlive() |
void |
setSolrClient(IsolrClient solrClient) |
public static boolean disableLogging
protected static final org.slf4j.Logger logger
@Autowired public FullTextSearchEngine(@Qualifier(value="multiThreadedHttpConnectionManager") org.apache.commons.httpclient.MultiThreadedHttpConnectionManager multiThreadedHttpConnectionManager) throws com.gisgraphy.fulltext.FullTextSearchException
multiThreadedHttpConnectionManager
- TheFullTextSearchException
- If an error occuredpublic void executeAndSerialize(com.gisgraphy.fulltext.FulltextQuery query, OutputStream outputStream) throws com.gisgraphy.fulltext.FullTextSearchException
executeAndSerialize
in interface com.gisgraphy.service.IQueryProcessor<com.gisgraphy.fulltext.FulltextQuery>
com.gisgraphy.fulltext.FullTextSearchException
public String executeQueryToString(com.gisgraphy.fulltext.FulltextQuery query)
executeQueryToString
in interface com.gisgraphy.service.IQueryProcessor<com.gisgraphy.fulltext.FulltextQuery>
public List<? extends GisFeature> executeQueryToDatabaseObjects(com.gisgraphy.fulltext.FulltextQuery query) throws com.gisgraphy.service.ServiceException
executeQueryToDatabaseObjects
in interface com.gisgraphy.fulltext.IFullTextSearchEngine
com.gisgraphy.service.ServiceException
public com.gisgraphy.fulltext.FulltextResultsDto executeQuery(com.gisgraphy.fulltext.FulltextQuery query) throws com.gisgraphy.service.ServiceException
executeQuery
in interface com.gisgraphy.fulltext.IFullTextSearchEngine
com.gisgraphy.service.ServiceException
public boolean isAlive()
isAlive
in interface com.gisgraphy.fulltext.IFullTextSearchEngine
public void setSolrClient(IsolrClient solrClient)
solrClient
- the solrClient to setpublic String getURL()
getURL
in interface com.gisgraphy.fulltext.IFullTextSearchEngine
Copyright © 2015. All rights reserved.