public class LuceneContentNameSearcher extends Object implements ContentNameSearcher
Modifier and Type | Field and Description |
---|---|
static String |
CONTENT_NAME_UNSTEMMED_FIELD |
static String |
PARENT_TITLE_UNSTEMMED_FIELD |
Constructor and Description |
---|
LuceneContentNameSearcher(ContentNameScorer contentNameScorer,
ResultConverter resultConverter,
CategoryMapperFactory categoryMapperFactory) |
Modifier and Type | Method and Description |
---|---|
Map<Category,List<SearchResult>> |
search(List<QueryToken> queryTokens)
Search and expect results using the Confluence default
ResultTemplate . |
Map<Category,List<SearchResult>> |
search(List<QueryToken> queryTokens,
ResultTemplate grouping)
Search returning results meeting the specified
ResultTemplate . |
Map<Category,List<SearchResult>> |
search(List<QueryToken> queryTokens,
ResultTemplate resultTemplate,
Set<Attachment.Type> attachmentTypes,
boolean searchParentName,
int startIndex,
Integer pageSize,
Map<String,Object> params,
String... spaceKeys)
Search returning results in the specified space and
ResultTemplate
include pagination and search parent name support. |
Map<Category,List<SearchResult>> |
search(List<QueryToken> queryTokens,
ResultTemplate resultTemplate,
Set<Attachment.Type> attachmentTypes,
String... spaceKeys)
Search returning results in the specified space and
ResultTemplate |
Map<Category,List<SearchResult>> |
search(List<QueryToken> queryTokens,
ResultTemplate grouping,
String... spaceKeys)
Search returning results in the specified space and
ResultTemplate |
List<SearchResult> |
searchNoCategorisation(List<QueryToken> queryTokens,
ResultTemplate resultTemplate,
Set<Attachment.Type> attachmentTypes,
boolean searchParentName,
int startIndex,
Integer pageSize,
Map<String,Object> params,
String... spaceKeys)
Search returning results in the specified space and
ResultTemplate
include pagination and search parent name support. |
public static final String CONTENT_NAME_UNSTEMMED_FIELD
public static final String PARENT_TITLE_UNSTEMMED_FIELD
public LuceneContentNameSearcher(ContentNameScorer contentNameScorer, ResultConverter resultConverter, CategoryMapperFactory categoryMapperFactory)
public Map<Category,List<SearchResult>> search(List<QueryToken> queryTokens)
ContentNameSearcher
ResultTemplate
.search
in interface ContentNameSearcher
queryTokens
- the parsed tokens to search with.ResultTemplate.DEFAULT
,
QueryTokenizer
public Map<Category,List<SearchResult>> search(List<QueryToken> queryTokens, ResultTemplate grouping)
ContentNameSearcher
ResultTemplate
.search
in interface ContentNameSearcher
queryTokens
- the parsed tokens to search with.grouping
- the grouping of the results you require.QueryTokenizer
public Map<Category,List<SearchResult>> search(List<QueryToken> queryTokens, ResultTemplate grouping, String... spaceKeys)
ContentNameSearcher
ResultTemplate
search
in interface ContentNameSearcher
queryTokens
- the parsed tokens to search with.grouping
- the grouping of the results you require.QueryTokenizer
public Map<Category,List<SearchResult>> search(List<QueryToken> queryTokens, ResultTemplate resultTemplate, Set<Attachment.Type> attachmentTypes, String... spaceKeys)
ContentNameSearcher
ResultTemplate
search
in interface ContentNameSearcher
queryTokens
- the parsed tokens to search with.resultTemplate
- the grouping of the results you require.attachmentTypes
- attachment types to filter attachments onQueryTokenizer
public Map<Category,List<SearchResult>> search(List<QueryToken> queryTokens, ResultTemplate resultTemplate, Set<Attachment.Type> attachmentTypes, boolean searchParentName, int startIndex, Integer pageSize, Map<String,Object> params, String... spaceKeys)
ContentNameSearcher
ResultTemplate
include pagination and search parent name support.search
in interface ContentNameSearcher
queryTokens
- the parsed tokens to search with.resultTemplate
- the grouping of the results you require.attachmentTypes
- attachment types to filter attachments onsearchParentName
- also applies the search to the parent name of the object (e.g. page name)startIndex
- the start index to search frompageSize
- the number of results to return from the startIndexparams
- additional parameters to apply to the searchspaceKeys
- the spaces to include in the searchpublic List<SearchResult> searchNoCategorisation(List<QueryToken> queryTokens, ResultTemplate resultTemplate, Set<Attachment.Type> attachmentTypes, boolean searchParentName, int startIndex, Integer pageSize, Map<String,Object> params, String... spaceKeys)
ContentNameSearcher
ResultTemplate
include pagination and search parent name support. Results are not grouped.searchNoCategorisation
in interface ContentNameSearcher
queryTokens
- the parsed tokens to search with.attachmentTypes
- attachment types to filter attachments onsearchParentName
- also applies the search to the parent name of the object (e.g. page name)startIndex
- the start index to search frompageSize
- the number of results to return from the startIndexparams
- additional parameters to apply to the searchspaceKeys
- the spaces to include in the searchCopyright © 2003–2017 Atlassian. All rights reserved.
View cookie preferences