Class CrowdQueryTranslator
java.lang.Object
com.atlassian.jira.crowd.embedded.lucene.CrowdQueryTranslator
Translates Crowd query API to Lucene query API.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionOptional<org.apache.lucene.search.Query>translateQuery(com.atlassian.crowd.search.query.entity.EntityQuery<?> query) Optional<org.apache.lucene.search.Query>tryQuerying(long directoryId, com.atlassian.crowd.search.query.entity.EntityQuery<?> crowdQuery)
-
Constructor Details
-
CrowdQueryTranslator
public CrowdQueryTranslator(org.apache.lucene.analysis.Analyzer analyzer)
-
-
Method Details
-
translateQuery
public Optional<org.apache.lucene.search.Query> translateQuery(com.atlassian.crowd.search.query.entity.EntityQuery<?> query) - Parameters:
query- crowd query- Returns:
- present translated Lucene query or absent if translation is unsuitable
-
tryQuerying
public Optional<org.apache.lucene.search.Query> tryQuerying(long directoryId, com.atlassian.crowd.search.query.entity.EntityQuery<?> crowdQuery)
-