public class FulltextSearchAction extends SearchAction
DEFAULT_NUMBER_OF_RESULTS_PER_PAGE, errorMessage, POPUP_VIEW
Constructor and Description |
---|
FulltextSearchAction() |
Modifier and Type | Method and Description |
---|---|
List<Country> |
getCountries() |
String |
getCountry() |
com.gisgraphy.serializer.common.OutputFormat[] |
getFormats() |
String |
getLang() |
List<String> |
getLanguages() |
String |
getPlacetype() |
String |
getQ() |
com.gisgraphy.fulltext.FulltextResultsDto |
getResponseDTO() |
String |
getStyle() |
com.gisgraphy.domain.valueobject.Output.OutputStyle[] |
getVerbosityModes() |
Boolean |
isAdmin() |
boolean |
isAllwordsrequired() |
boolean |
isDisplayResults() |
boolean |
isSpellchecking() |
String |
search()
Execute a fulltextSearch from the request parameters
|
String |
searchpopup()
Execute a fulltextSearch from the request parameters
|
void |
setAllwordsrequired(boolean allwordsrequired) |
void |
setAlternateNameDao(IAlternateNameDao alternateNameDao) |
void |
setCountry(String country) |
void |
setCountryDao(CountryDao countryDao) |
void |
setFullTextSearchEngine(com.gisgraphy.fulltext.IFullTextSearchEngine fullTextSearchEngine) |
void |
setLang(String lang) |
void |
setPlacetype(String placetype) |
void |
setQ(String q) |
void |
setSpellchecking(boolean spellchecking) |
void |
setStyle(String style) |
getDefaultNumberOfResultsPerPage, getErrorMessage, getFormat, getFrom, getPlacetypes, getTo, isAdvancedSearch, isIndent, setAdvancedSearch, setFormat, setFrom, setIndent, setTo
addActionError, addActionMessage, addFieldError, clearActionErrors, clearErrors, clearErrorsAndMessages, clearFieldErrors, clearMessages, clone, doDefault, execute, getActionErrors, getActionMessages, getErrorMessages, getErrors, getFieldErrors, getLocale, getText, getText, getText, getText, getText, getText, getText, getText, getText, getTexts, getTexts, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, hasKey, input, pause, setActionErrors, setActionMessages, setFieldErrors, validate
public boolean isDisplayResults()
public String search() throws Exception
Exception
- in case of errorspublic String searchpopup() throws Exception
Exception
- in case of errorspublic com.gisgraphy.domain.valueobject.Output.OutputStyle[] getVerbosityModes()
public com.gisgraphy.serializer.common.OutputFormat[] getFormats()
public void setFullTextSearchEngine(com.gisgraphy.fulltext.IFullTextSearchEngine fullTextSearchEngine)
fullTextSearchEngine
- the fullTextSearchEngine to setpublic void setCountry(String country)
country
- the country parameter to setpublic void setLang(String lang)
lang
- the lang parameter to setpublic void setStyle(String style)
style
- the style parameter to setpublic void setQ(String q)
q
- The q parameter to setpublic String getCountry()
public String getLang()
public String getStyle()
public String getQ()
public void setPlacetype(String placetype)
placetype
- the placetype to setpublic String getPlacetype()
public void setCountryDao(CountryDao countryDao)
countryDao
- the countryDao to setpublic void setAlternateNameDao(IAlternateNameDao alternateNameDao)
alternateNameDao
- the alternateNameDao to setpublic com.gisgraphy.fulltext.FulltextResultsDto getResponseDTO()
public boolean isSpellchecking()
public void setSpellchecking(boolean spellchecking)
spellchecking
- the spellchecking to setpublic boolean isAllwordsrequired()
public void setAllwordsrequired(boolean allwordsrequired)
allwordsrequired
- the allwordsrequired to setpublic Boolean isAdmin()
Copyright © 2015. All rights reserved.