public class LuceneContentNameScorer extends Object implements ContentNameScorer
| Constructor and Description |
|---|
LuceneContentNameScorer(com.atlassian.bonnie.ILuceneConnection luceneConnection,
ContentNameSearchPermissionsFilterFactory contentNameSearchPermissionsFilterFactory,
ContentNameArchivedSpacesFilter contentNameArchivedSpacesFilter,
BoostingQueryFactory boostingQueryFactory,
com.atlassian.event.api.EventPublisher eventPublisher,
BrowseUsersPermissionsFilterFactory browseUsersPermissionsFilterFactory) |
LuceneContentNameScorer(com.atlassian.bonnie.ILuceneConnection luceneConnection,
ContentNameSearchPermissionsFilterFactory contentNameSearchPermissionsFilterFactory,
ContentNameArchivedSpacesFilter contentNameArchivedSpacesFilter,
BoostingStrategy boostStrategy)
|
| Modifier and Type | Method and Description |
|---|---|
void |
score(List<QueryToken> queryTokens,
org.apache.lucene.search.Collector collector) |
void |
score(List<QueryToken> queryTokens,
org.apache.lucene.search.Collector collector,
Map<String,Object> params) |
void |
score(List<QueryToken> queryTokens,
org.apache.lucene.search.Collector collector,
Set<Attachment.Type> attachmentTypes,
boolean searchParentName,
Map<String,Object> params,
String... spaceKeys) |
void |
score(List<QueryToken> queryTokens,
org.apache.lucene.search.Collector collector,
Set<Attachment.Type> attachmentTypes,
boolean searchParentName,
String... spaceKeys) |
void |
score(List<QueryToken> queryTokens,
org.apache.lucene.search.Collector collector,
Set<Attachment.Type> attachmentTypes,
String... spaceKeys) |
void |
score(List<QueryToken> queryTokens,
org.apache.lucene.search.Collector collector,
String... spaceKeys) |
public LuceneContentNameScorer(com.atlassian.bonnie.ILuceneConnection luceneConnection,
ContentNameSearchPermissionsFilterFactory contentNameSearchPermissionsFilterFactory,
ContentNameArchivedSpacesFilter contentNameArchivedSpacesFilter,
BoostingQueryFactory boostingQueryFactory,
com.atlassian.event.api.EventPublisher eventPublisher,
BrowseUsersPermissionsFilterFactory browseUsersPermissionsFilterFactory)
@Deprecated public LuceneContentNameScorer(com.atlassian.bonnie.ILuceneConnection luceneConnection, ContentNameSearchPermissionsFilterFactory contentNameSearchPermissionsFilterFactory, ContentNameArchivedSpacesFilter contentNameArchivedSpacesFilter, BoostingStrategy boostStrategy)
public void score(List<QueryToken> queryTokens, org.apache.lucene.search.Collector collector)
score in interface ContentNameScorerqueryTokens - the query tokens to be used for scoringcollector - a lucene collector to collect the resultspublic void score(List<QueryToken> queryTokens, org.apache.lucene.search.Collector collector, String... spaceKeys)
score in interface ContentNameScorerqueryTokens - the query tokens to be used for scoringcollector - a lucene collector to collect the resultsspaceKeys - the spaces to restrict to. empty/null means all spacespublic void score(List<QueryToken> queryTokens, org.apache.lucene.search.Collector collector, Set<Attachment.Type> attachmentTypes, String... spaceKeys)
score in interface ContentNameScorerqueryTokens - the query tokens to be used for scoringcollector - a lucene collector to collect the resultsattachmentTypes - attachment types to restrict to. empty/null means all attachmentsspaceKeys - the spaces to restrict to. empty/null means all spacespublic void score(List<QueryToken> queryTokens, org.apache.lucene.search.Collector collector, Map<String,Object> params)
score in interface ContentNameScorerqueryTokens - the query tokens to be used for scoringcollector - a lucene collector to collect the resultsparams - additional parameters to apply to the scorerpublic void score(List<QueryToken> queryTokens, org.apache.lucene.search.Collector collector, Set<Attachment.Type> attachmentTypes, boolean searchParentName, String... spaceKeys)
score in interface ContentNameScorerqueryTokens - the query tokens to be used for scoringcollector - a lucene collector to collect the resultsattachmentTypes - attachment types to restrict to. empty/null means all attachmentssearchParentName - also matches against parent document namesspaceKeys - the spaces to restrict to. empty/null means all spacespublic void score(List<QueryToken> queryTokens, org.apache.lucene.search.Collector collector, Set<Attachment.Type> attachmentTypes, boolean searchParentName, Map<String,Object> params, String... spaceKeys)
score in interface ContentNameScorerqueryTokens - the query tokens to be used for scoringcollector - a lucene collector to collect the resultsattachmentTypes - attachment types to restrict to. empty/null means all attachmentssearchParentName - also matches against parent document namesparams - additional parameters to apply to the scorerspaceKeys - the spaces to restrict to. empty/null means all spacesCopyright © 2003–2019 Atlassian. All rights reserved.