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 java.lang.Object
implements ContentNameScorer


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

score

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

score

public void score(java.util.List<QueryToken> queryTokens,
                  org.apache.lucene.search.Collector collector,
                  java.lang.String... spaceKeys)
Specified by:
score in interface ContentNameScorer
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

public void score(java.util.List<QueryToken> queryTokens,
                  org.apache.lucene.search.Collector collector,
                  java.util.Set<Attachment.Type> attachmentTypes,
                  java.lang.String... spaceKeys)
Specified by:
score in interface ContentNameScorer
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

public void score(java.util.List<QueryToken> queryTokens,
                  org.apache.lucene.search.Collector collector,
                  java.util.Map<java.lang.String,java.lang.Object> params)
Specified by:
score in interface ContentNameScorer
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

score

public 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)
Specified by:
score in interface ContentNameScorer
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

public 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)
Specified by:
score in interface ContentNameScorer
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


Copyright © 2003-2014 Atlassian. All Rights Reserved.