Class SearchFormatter


  • public class SearchFormatter
    extends Object
    A SearchFormatter is responsible for formatting the Results of a search, which are grouped into several Parts. It supports XML and JSON as output formats, optionally applying pagination.
    Author:
    Matthias Müller
    See Also:
    Part, Result
    • Method Detail

      • getSortedDocs

        protected List<Result> getSortedDocs()
      • getPage

        public int getPage()
      • setPage

        public void setPage​(int page)
      • getPageParamName

        public String getPageParamName()
      • setPageParamName

        public void setPageParamName​(String pageParamName)
      • getPageSize

        public int getPageSize()
      • setPageSize

        public void setPageSize​(int pageSize)
      • getPageSizeParamName

        public String getPageSizeParamName()
      • setPageSizeParamName

        public void setPageSizeParamName​(String pageSizeParamName)
      • getQueryParamName

        public String getQueryParamName()
      • setQueryParamName

        public void setQueryParamName​(String queryParamName)
      • isPretty

        public boolean isPretty()
      • setPretty

        public void setPretty​(boolean pretty)
      • getFormat

        public String getFormat()
      • setFormat

        public void setFormat​(String format)
      • isUseParts

        public boolean isUseParts()
      • setUseParts

        public void setUseParts​(boolean useParts)
      • getDateFormat

        public String getDateFormat()
      • setDateFormat

        public void setDateFormat​(String dateFormat)
      • getParts

        public List<Part> getParts()
      • setParts

        public void setParts​(List<Part> parts)
      • getQueryParam

        public String getQueryParam()
      • setQueryParam

        public void setQueryParam​(String queryParam)
      • getXslStylesheet

        public File getXslStylesheet()
      • setXslStylesheet

        public void setXslStylesheet​(File xslStylesheet)
      • getTime

        public long getTime()
      • setTime

        public void setTime​(long time)
      • isDoXsl

        public boolean isDoXsl()
      • setDoXsl

        public void setDoXsl​(boolean doXsl)