com.atlassian.confluence.search.v2.lucene.mapper
Class MacroStorageVersionQueryMapper

java.lang.Object
  extended by com.atlassian.confluence.search.v2.lucene.mapper.MacroStorageVersionQueryMapper
All Implemented Interfaces:
LuceneQueryMapper<MacroStorageVersionQuery>

public class MacroStorageVersionQueryMapper
extends Object
implements LuceneQueryMapper<MacroStorageVersionQuery>

Maps a MacroStorageVersionQuery to a lucene query to compare the macroNameAndVersion to the extracted MacroUsageExtractorFields.MACRO_STORAGE_VERSION_NAME.


Constructor Summary
MacroStorageVersionQueryMapper()
           
 
Method Summary
 org.apache.lucene.search.Query convertToLuceneQuery(MacroStorageVersionQuery searchQuery)
          Convert a SearchQuery into a lucene query.
 void setLuceneQueryParserFactory(LuceneQueryParserFactory luceneQueryParserFactory)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MacroStorageVersionQueryMapper

public MacroStorageVersionQueryMapper()
Method Detail

convertToLuceneQuery

public org.apache.lucene.search.Query convertToLuceneQuery(MacroStorageVersionQuery searchQuery)
Description copied from interface: LuceneQueryMapper
Convert a SearchQuery into a lucene query. So a query that represents a search for any value in a particular index field should map to null.

Specified by:
convertToLuceneQuery in interface LuceneQueryMapper<MacroStorageVersionQuery>
Parameters:
searchQuery - the query to convert
Returns:
the lucene query corresponding to the search query. null can be returned and signifies that no mapped query is necessary for the mapped query.

setLuceneQueryParserFactory

public void setLuceneQueryParserFactory(LuceneQueryParserFactory luceneQueryParserFactory)


Copyright © 2003–2015 Atlassian. All rights reserved.