com.atlassian.confluence.search.contentnames.lucene
Class LuceneContentNameScorer

java.lang.Object
  extended by com.atlassian.confluence.search.contentnames.lucene.LuceneContentNameScorer
All Implemented Interfaces:
ContentNameScorer

public class LuceneContentNameScorer
extends Object
implements ContentNameScorer


Constructor Summary
LuceneContentNameScorer(com.atlassian.bonnie.ILuceneConnection luceneConnection, ContentNameSearchPermissionsFilter contentNameSearchPermissionsFilter, ContentNameArchivedSpacesFilter contentNameArchivedSpacesFilter, BoostingStrategy boostStrategy)
           
 
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
 

Constructor Detail

LuceneContentNameScorer

public LuceneContentNameScorer(com.atlassian.bonnie.ILuceneConnection luceneConnection,
                               ContentNameSearchPermissionsFilter contentNameSearchPermissionsFilter,
                               ContentNameArchivedSpacesFilter contentNameArchivedSpacesFilter,
                               BoostingStrategy boostStrategy)
Method Detail

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 scoring
spaceKeys - 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 scoring
attachmentTypes - attachment types to restrict to. empty/null means all attachments
spaceKeys - 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 scoring
params - 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 scoring
attachmentTypes - attachment types to restrict to. empty/null means all attachments
searchParentName - also matches against parent document names
spaceKeys - 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 scoring
attachmentTypes - attachment types to restrict to. empty/null means all attachments
searchParentName - also matches against parent document names
params - additional parameters to apply to the scorer
spaceKeys - the spaces to restrict to. empty/null means all spaces
Returns:
the document scores for this query


Copyright © 2003-2013 Atlassian. All Rights Reserved.