|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.gisgraphy.domain.geoloc.service.fulltextsearch.FullTextSearchEngine
public class FullTextSearchEngine
Default (threadsafe) implementation of IFullTextSearchEngine
| Field Summary | |
|---|---|
protected static org.slf4j.Logger |
logger
|
| Constructor Summary | |
|---|---|
FullTextSearchEngine(org.apache.commons.httpclient.MultiThreadedHttpConnectionManager multiThreadedHttpConnectionManager)
|
|
| Method Summary | |
|---|---|
void |
executeAndSerialize(FulltextQuery query,
java.io.OutputStream outputStream)
Execute the query and serialize the results in an OutputStream. |
FulltextResultsDto |
executeQuery(FulltextQuery query)
Execute the query and returns a list of DTO |
java.util.List<? extends GisFeature> |
executeQueryToDatabaseObjects(FulltextQuery query)
Execute the query and returns the Java Objects |
java.lang.String |
executeQueryToString(FulltextQuery query)
Execute the query and returns the results as String. |
java.lang.String |
getURL()
|
boolean |
isAlive()
|
void |
setSolrClient(IsolrClient solrClient)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final org.slf4j.Logger logger
| Constructor Detail |
|---|
public FullTextSearchEngine(@Qualifier(value="multiThreadedHttpConnectionManager")
org.apache.commons.httpclient.MultiThreadedHttpConnectionManager multiThreadedHttpConnectionManager)
throws FullTextSearchException
multiThreadedHttpConnectionManager - The
FullTextSearchException - If an error occured| Method Detail |
|---|
public void executeAndSerialize(FulltextQuery query,
java.io.OutputStream outputStream)
throws FullTextSearchException
IQueryProcessorOutputStream.
It is thread safe and can be used in a servlet container (e.g : serialize
on an HttpResource's OutputStream
executeAndSerialize in interface IQueryProcessor<FulltextQuery>query - the query to executeoutputStream - the outputstream we want to serialize in
FullTextSearchExceptionpublic java.lang.String executeQueryToString(FulltextQuery query)
IQueryProcessor
executeQueryToString in interface IQueryProcessor<FulltextQuery>query - the query to execute
public java.util.List<? extends GisFeature> executeQueryToDatabaseObjects(FulltextQuery query)
throws ServiceException
IFullTextSearchEngine
executeQueryToDatabaseObjects in interface IFullTextSearchEnginequery - The FulltextQuery to execute
ServiceException - If an error occurred
public FulltextResultsDto executeQuery(FulltextQuery query)
throws ServiceException
IFullTextSearchEngine
executeQuery in interface IFullTextSearchEnginequery - The FulltextQuery to execute
ServiceException - If an error occurredpublic boolean isAlive()
isAlive in interface IFullTextSearchEnginepublic void setSolrClient(IsolrClient solrClient)
solrClient - the solrClient to setpublic java.lang.String getURL()
getURL in interface IFullTextSearchEngine
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||