Class SearchPart

  • All Implemented Interfaces:
    Serializable, Cloneable, javax.servlet.jsp.tagext.BodyTag, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.Tag, ParameterOwner

    public class SearchPart
    extends javax.servlet.jsp.tagext.BodyTagSupport
    implements ParameterOwner, Cloneable
    A SearchPart offers the search results produced by a SearchProvider of an Application.

    Attributes (defaults in brackets):

    • application - the Application that offers the SearchProvider
    • method - the bean name of the SearchProvider within the application
    • analyzerClass - the fully qualified name of the Analyzer to use for searching
    • fields - a comma-separated list of fields to search in
    • title - the title of this search part
    • language - the two-letter language code for the search

    Usage:

     <appNG:searchPart application="acme-products" method="productSearchProvider" language="en"
      title="acme Products" fields="title,contents" analyzerClass="org.apache.lucene.analysis.en.EnglishAnalyzer">
        <appNG:param name="foo">bar</appNG:param>
        <appNG:param name="jin">fizz</appNG:param>
        </appNG:searchPart>
     
    Author:
    Matthias Müller
    See Also:
    SearchProvider, Serialized Form
    • Constructor Detail

      • SearchPart

        public SearchPart()
    • Method Detail

      • doEndTag

        public int doEndTag()
                     throws javax.servlet.jsp.JspException
        Specified by:
        doEndTag in interface javax.servlet.jsp.tagext.Tag
        Overrides:
        doEndTag in class javax.servlet.jsp.tagext.BodyTagSupport
        Throws:
        javax.servlet.jsp.JspException
      • getApplication

        public String getApplication()
      • setApplication

        public void setApplication​(String application)
      • getMethod

        public String getMethod()
      • setMethod

        public void setMethod​(String method)
      • getFields

        public String getFields()
      • setFields

        public void setFields​(String fields)
      • getTitle

        public String getTitle()
      • setTitle

        public void setTitle​(String title)
      • getLanguage

        public String getLanguage()
      • setLanguage

        public void setLanguage​(String language)
      • getAnalyzerClass

        public String getAnalyzerClass()
      • setAnalyzerClass

        public void setAnalyzerClass​(String analyzerClass)