|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.confluence.search.contentnames.lucene.LuceneContentNameSearcher
public class LuceneContentNameSearcher
Field Summary | |
---|---|
static String |
CONTENT_NAME_UNSTEMMED_FIELD
|
static int |
MAX_RESULTS
|
static String |
PARENT_TITLE_UNSTEMMED_FIELD
|
Constructor Summary | |
---|---|
LuceneContentNameSearcher(ContentNameScorer contentNameScorer,
ResultCategoriser resultCategoriser,
ResultConverter resultConverter)
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String CONTENT_NAME_UNSTEMMED_FIELD
public static final String PARENT_TITLE_UNSTEMMED_FIELD
public static final int MAX_RESULTS
Constructor Detail |
---|
public LuceneContentNameSearcher(ContentNameScorer contentNameScorer, ResultCategoriser resultCategoriser, ResultConverter resultConverter)
Method Detail |
---|
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 on
QueryTokenizer
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 search
public 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 search
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |