Interface LuceneQueryMapper<T extends SearchQuery>

All Known Subinterfaces:
All Known Implementing Classes:
AllQueryMapper, AttachmentTypeQueryMapper, BooleanQueryMapper, BoostingQueryMapper, ContainingContentTypeQueryMapper, ContentTypeQueryMapper, ContributorQueryMapper, CreatorQueryMapper, CustomContentTypeQueryMapper, DateRangeQueryMapper, DelegatingLuceneSearchMapper, FileExtensionQueryMapper, HasPersonalSpaceQueryMapper, InheritedLabelQueryMapper, InSpaceQueryMapper, LabelQueryMapper, LastModifierQueryMapper, MacroUsageQueryMapper, MultiTextFieldQueryMapper, PermittedSpacesQueryMapper, SpaceCategoryQueryMapper, TextFieldPrefixQueryMapper, TextFieldQueryMapper, UserTextQueryMapper

public interface LuceneQueryMapper<T extends SearchQuery>

A lucene query mapper represents an object that is able to map from a Confluence SearchQuery to a Lucene Query.

Implementations of this class will be autowired automatically.

Implementations of this class must use setter injection instead of constructor injector, as only the former is supported at the moment.

Method Summary convertToLuceneQuery(T searchQuery)
          Convert a SearchQuery into a lucene query.

Method Detail

convertToLuceneQuery convertToLuceneQuery(T searchQuery)
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.

searchQuery - the query to convert
the lucene query corresponding to the search query. null can be returned and signifies that no mapped query is necessary for the mapped query.
IllegalArgumentException - if the search query is null or invalid

Copyright © 2003-2012 Atlassian. All Rights Reserved.