com.atlassian.confluence.search.contentnames.lucene
Class LuceneContentNameScorer
java.lang.Object
com.atlassian.confluence.search.contentnames.lucene.LuceneContentNameScorer
- All Implemented Interfaces:
- ContentNameScorer
public class LuceneContentNameScorer
- extends Object
- implements ContentNameScorer
Method Summary |
DocumentResultScores |
score(List<QueryToken> queryTokens)
|
DocumentResultScores |
score(List<QueryToken> queryTokens,
Map<String,Object> params)
|
DocumentResultScores |
score(List<QueryToken> queryTokens,
Set<Attachment.Type> attachmentTypes,
boolean searchParentName,
Map<String,Object> params,
String... spaceKeys)
|
DocumentResultScores |
score(List<QueryToken> queryTokens,
Set<Attachment.Type> attachmentTypes,
boolean searchParentName,
String... spaceKeys)
|
DocumentResultScores |
score(List<QueryToken> queryTokens,
Set<Attachment.Type> attachmentTypes,
String... spaceKeys)
|
DocumentResultScores |
score(List<QueryToken> queryTokens,
String... spaceKeys)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LuceneContentNameScorer
public LuceneContentNameScorer(com.atlassian.bonnie.ILuceneConnection luceneConnection,
ContentNameSearchPermissionsFilter contentNameSearchPermissionsFilter,
BoostingStrategy boostStrategy)
score
public DocumentResultScores score(List<QueryToken> queryTokens)
- Specified by:
score
in interface ContentNameScorer
- Parameters:
queryTokens
- the query tokens to be used for scoring
- Returns:
- the document scores for this query
score
public DocumentResultScores score(List<QueryToken> queryTokens,
String... spaceKeys)
- Specified by:
score
in interface ContentNameScorer
- Parameters:
queryTokens
- the query tokens to be used for scoringspaceKeys
- the spaces to restrict to. empty/null means all spaces
- Returns:
- the document scores for this query
score
public DocumentResultScores score(List<QueryToken> queryTokens,
Set<Attachment.Type> attachmentTypes,
String... spaceKeys)
- Specified by:
score
in interface ContentNameScorer
- Parameters:
queryTokens
- the query tokens to be used for scoringattachmentTypes
- attachment types to restrict to. empty/null means all attachmentsspaceKeys
- the spaces to restrict to. empty/null means all spaces
- Returns:
- the document scores for this query
score
public DocumentResultScores score(List<QueryToken> queryTokens,
Map<String,Object> params)
- Specified by:
score
in interface ContentNameScorer
- Parameters:
queryTokens
- the query tokens to be used for scoringparams
- additional parameters to apply to the scorer
- Returns:
- the document scores for this query
score
public DocumentResultScores score(List<QueryToken> queryTokens,
Set<Attachment.Type> attachmentTypes,
boolean searchParentName,
String... spaceKeys)
- Specified by:
score
in interface ContentNameScorer
- Parameters:
queryTokens
- the query tokens to be used for scoringattachmentTypes
- 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 spaces
- Returns:
- the document scores for this query
score
public DocumentResultScores score(List<QueryToken> queryTokens,
Set<Attachment.Type> attachmentTypes,
boolean searchParentName,
Map<String,Object> params,
String... spaceKeys)
- Specified by:
score
in interface ContentNameScorer
- Parameters:
queryTokens
- the query tokens to be used for scoringattachmentTypes
- 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 spaces
- Returns:
- the document scores for this query
Copyright © 2003-2012 Atlassian. All Rights Reserved.