|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.confluence.search.v2.lucene.mapper.MacroUsageQueryMapper
public class MacroUsageQueryMapper
maps a macroUsageQuery to a lucene query using a constant score boost, macro name either matches or doesn't so we use ConstantScoreQuery to wrap a TermFilter to compare the macroName to the extracted MacroUsageExtractorFields.MACRO_FIELD_NAME
Constructor Summary | |
---|---|
MacroUsageQueryMapper()
|
Method Summary | |
---|---|
org.apache.lucene.search.Query |
convertToLuceneQuery(MacroUsageQuery macroUsageQuery)
Convert a SearchQuery into a lucene query. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MacroUsageQueryMapper()
Method Detail |
---|
public org.apache.lucene.search.Query convertToLuceneQuery(MacroUsageQuery macroUsageQuery)
LuceneQueryMapper
convertToLuceneQuery
in interface LuceneQueryMapper<MacroUsageQuery>
macroUsageQuery
- the query to convert
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |