public class

LuceneQueryTokenizer

extends Object
implements QueryTokenizer
java.lang.Object
   ↳ com.atlassian.confluence.search.contentnames.lucene.LuceneQueryTokenizer

Class Overview

The purpose of this class is to wrap the tokens emitted from lucene analysis inside our own QueryTokens so that we can tag some additional meaning. Although we could have modified the 'type' property of lucene tokens, we would have had to tinker with all the analyzers for each of the languages we have, which is not feasible.

Summary

Public Constructors
LuceneQueryTokenizer(Analyzer unstemmedAnalyzer)
Public Methods
List<QueryToken> tokenize(String query)
Produces query tokens from the specified query.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.confluence.search.contentnames.QueryTokenizer

Public Constructors

public LuceneQueryTokenizer (Analyzer unstemmedAnalyzer)

Public Methods

public List<QueryToken> tokenize (String query)

Produces query tokens from the specified query.

Parameters
query the query
Returns
  • query tokens from the specified query. Returns empty list for null or empty query.