com.atlassian.confluence.search.contentnames.lucene
Interface ContentNameScorer

All Known Implementing Classes:
LuceneContentNameScorer

public interface ContentNameScorer

Calculates documents scores for a query directed at content names.


Method Summary
 void score(java.util.List<QueryToken> queryTokens, org.apache.lucene.search.Collector collector)
           
 void score(java.util.List<QueryToken> queryTokens, org.apache.lucene.search.Collector collector, java.util.Map<java.lang.String,java.lang.Object> params)
           
 void score(java.util.List<QueryToken> queryTokens, org.apache.lucene.search.Collector collector, java.util.Set<Attachment.Type> attachmentTypes, boolean searchParentName, java.util.Map<java.lang.String,java.lang.Object> params, java.lang.String... spaceKeys)
           
 void score(java.util.List<QueryToken> queryTokens, org.apache.lucene.search.Collector collector, java.util.Set<Attachment.Type> attachmentTypes, boolean searchParentName, java.lang.String... spaceKeys)
           
 void score(java.util.List<QueryToken> queryTokens, org.apache.lucene.search.Collector collector, java.util.Set<Attachment.Type> attachmentTypes, java.lang.String... spaceKeys)
           
 void score(java.util.List<QueryToken> queryTokens, org.apache.lucene.search.Collector collector, java.lang.String... spaceKeys)
           
 

Method Detail

score

void score(java.util.List<QueryToken> queryTokens,
           org.apache.lucene.search.Collector collector)
Parameters:
queryTokens - the query tokens to be used for scoring
collector - a lucene collector to collect the results

score

void score(java.util.List<QueryToken> queryTokens,
           org.apache.lucene.search.Collector collector,
           java.lang.String... spaceKeys)
Parameters:
queryTokens - the query tokens to be used for scoring
collector - a lucene collector to collect the results
spaceKeys - the spaces to restrict to. empty/null means all spaces

score

void score(java.util.List<QueryToken> queryTokens,
           org.apache.lucene.search.Collector collector,
           java.util.Set<Attachment.Type> attachmentTypes,
           java.lang.String... spaceKeys)
Parameters:
queryTokens - the query tokens to be used for scoring
collector - a lucene collector to collect the results
attachmentTypes - attachment types to restrict to. empty/null means all attachments
spaceKeys - the spaces to restrict to. empty/null means all spaces

score

void score(java.util.List<QueryToken> queryTokens,
           org.apache.lucene.search.Collector collector,
           java.util.Set<Attachment.Type> attachmentTypes,
           boolean searchParentName,
           java.lang.String... spaceKeys)
Parameters:
queryTokens - the query tokens to be used for scoring
collector - a lucene collector to collect the results
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

score

void score(java.util.List<QueryToken> queryTokens,
           org.apache.lucene.search.Collector collector,
           java.util.Set<Attachment.Type> attachmentTypes,
           boolean searchParentName,
           java.util.Map<java.lang.String,java.lang.Object> params,
           java.lang.String... spaceKeys)
Parameters:
queryTokens - the query tokens to be used for scoring
collector - a lucene collector to collect the results
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

score

void score(java.util.List<QueryToken> queryTokens,
           org.apache.lucene.search.Collector collector,
           java.util.Map<java.lang.String,java.lang.Object> params)
Parameters:
queryTokens - the query tokens to be used for scoring
collector - a lucene collector to collect the results
params - additional parameters to apply to the scorer


Copyright © 2003-2013 Atlassian. All Rights Reserved.