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 java.lang.Object
- implements ContentNameScorer
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 |
LuceneContentNameScorer
public LuceneContentNameScorer(com.atlassian.bonnie.ILuceneConnection luceneConnection,
ContentNameSearchPermissionsFilterFactory contentNameSearchPermissionsFilterFactory,
ContentNameArchivedSpacesFilter contentNameArchivedSpacesFilter,
BoostingStrategy boostStrategy)
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 scoringcollector
- 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 scoringcollector
- a lucene collector to collect the resultsspaceKeys
- 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 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 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 scoringcollector
- a lucene collector to collect the resultsparams
- 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 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 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 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 spaces
Copyright © 2003-2014 Atlassian. All Rights Reserved.