Package hudson.search
Class SearchIndexBuilder
- java.lang.Object
-
- hudson.search.SearchIndexBuilder
-
public final class SearchIndexBuilder extends Object
BuildsSearchIndex
. This object is also used to represent partially build search index, much likeStringBuilder
is often passed around to cooperatively build search index.- Author:
- Kohsuke Kawaguchi
- See Also:
AbstractModelObject.makeSearchIndex()
-
-
Constructor Summary
Constructors Constructor Description SearchIndexBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SearchIndexBuilder
add(SearchIndex index)
SearchIndexBuilder
add(SearchIndexBuilder index)
SearchIndexBuilder
add(SearchItem item)
SearchIndexBuilder
add(String urlAsWellAsName)
Short foradd(urlAsWellAsName,urlAsWellAsName)
SearchIndexBuilder
add(String url, SearchableModelObject searchable, String name)
SearchIndexBuilder
add(String url, SearchableModelObject searchable, String... names)
SearchIndexBuilder
add(String url, String name)
Adds a search index under the keyword 'name' to the given URL.SearchIndexBuilder
add(String url, String... names)
SearchIndexBuilder
addAllAnnotations(SearchableModelObject o)
Adds allQuickSilver
-annotated properties to the search index.SearchIndex
make()
-
-
-
Method Detail
-
addAllAnnotations
public SearchIndexBuilder addAllAnnotations(SearchableModelObject o)
Adds allQuickSilver
-annotated properties to the search index.
-
add
public SearchIndexBuilder add(String urlAsWellAsName)
Short foradd(urlAsWellAsName,urlAsWellAsName)
-
add
public SearchIndexBuilder add(String url, String name)
Adds a search index under the keyword 'name' to the given URL.- Parameters:
url
- Relative URL from the source of the search index.
-
add
public SearchIndexBuilder add(String url, String... names)
-
add
public SearchIndexBuilder add(SearchItem item)
-
add
public SearchIndexBuilder add(String url, SearchableModelObject searchable, String name)
-
add
public SearchIndexBuilder add(String url, SearchableModelObject searchable, String... names)
-
add
public SearchIndexBuilder add(SearchIndex index)
-
add
public SearchIndexBuilder add(SearchIndexBuilder index)
-
make
public SearchIndex make()
-
-