public class

TextFieldPrefixQuery

extends Object
implements SearchQuery
java.lang.Object
   ↳ com.atlassian.confluence.search.v2.query.TextFieldPrefixQuery

Class Overview

Represents a query that specifies a prefix to be matched - equivalent to a trailing wildcard search e.g. 'app' will match 'apple'

Note: Using this query means that you know the name of fields within you index. This means that your code is bound to the name of fields in the index which could change. Ultimately you should not consider the TextFieldPrefixQuery part of the public search API.

Summary

Public Constructors
TextFieldPrefixQuery(String fieldName, String prefix)
Construct a new TextFieldPrefixQuery.
Public Methods
boolean equals(Object obj)
String getFieldName()
String getKey()
List getParameters()
List of parameters as Strings or SearchQuerys.
String getPrefix()
int hashCode()
String toString()
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.confluence.search.v2.SearchQuery

Public Constructors

public TextFieldPrefixQuery (String fieldName, String prefix)

Construct a new TextFieldPrefixQuery.

Parameters
fieldName the index field to apply this query on
prefix the prefix being searched for

Public Methods

public boolean equals (Object obj)

public String getFieldName ()

public String getKey ()

public List getParameters ()

List of parameters as Strings or SearchQuerys.

Returns

public String getPrefix ()

public int hashCode ()

public String toString ()