org.springframework.roo.addon.solr
Annotation Type RooSolrWebSearchable


@Target(value=TYPE)
@Retention(value=SOURCE)
public @interface RooSolrWebSearchable

Adds a Pojo to expose controller method 'search' and 'autoComplete'

Since:
1.1
Author:
Stefan Schmidt

Optional Element Summary
 String autoCompleteMethod
          Specify name of the "autoComplete" method to generate.
 String searchMethod
          Specify name of the "search" method to generate.
 

searchMethod

public abstract String searchMethod
Specify name of the "search" method to generate. Use a value of "" to avoid the generation of a search method.

Returns:
the name of the "search" method to generate (defaults to "search"; mandatory)
Default:
"search"

autoCompleteMethod

public abstract String autoCompleteMethod
Specify name of the "autoComplete" method to generate. Use a value of "" to avoid the generation of a autoComplete method.

Returns:
the name of the "search" method to generate (defaults to "search"; mandatory)
Default:
"autoComplete"


Copyright © 2011. All Rights Reserved.