PrefixWildcardQueryNode

A PrefixWildcardQueryNode represents wildcardquery that matches abc* or *. This does not apply to phrases, this is a special case on the original lucene parser. TODO: refactor the code to remove this special case from the parser. and probably do it on a Processor

Constructors

Link copied to clipboard
constructor(field: CharSequence?, text: CharSequence?, begin: Int, end: Int)
constructor(fqn: FieldQueryNode)

Properties

Link copied to clipboard
var begin: Int

The term's begin position.

Link copied to clipboard
Link copied to clipboard
var end: Int

The term's end position.

Link copied to clipboard
open override var field: CharSequence?

The term's field

Link copied to clipboard
override val isLeaf: Boolean

verify if a node is a Leaf node

Link copied to clipboard
override val parent: QueryNode?
Link copied to clipboard

The term's position increment.

Link copied to clipboard
override val tagMap: Map<String, Any>

Returns a map containing all tags attached to this query node.

Link copied to clipboard
open override var text: CharSequence?

The term's text.

Link copied to clipboard
open override var value: CharSequence?

Returns the term.

Functions

Link copied to clipboard
override fun add(children: List<QueryNode>)
override fun add(child: QueryNode)
Link copied to clipboard
open override fun clone(): QueryNode
Link copied to clipboard
open override fun cloneTree(): PrefixWildcardQueryNode

Recursive clone the QueryNode tree The tags are not copied to the new tree when you call the cloneTree() method

Link copied to clipboard
open override fun containsTag(tagName: String): Boolean

verify if a node contains a tag

Link copied to clipboard

returns null if the field was not specified in the query string

Link copied to clipboard
open override fun getTag(tagName: String): Any?

Returns object stored under that tag name

Link copied to clipboard
Link copied to clipboard
open override fun removeChildren(childNode: QueryNode)

Remove a child node

Link copied to clipboard
open override fun removeFromParent()

Removes this query node from its parent.

Link copied to clipboard
override fun set(children: List<QueryNode>)
Link copied to clipboard
open override fun setTag(tagName: String, value: Any)

Associate the specified value with the specified tagName. If the tagName already exists, the old value is replaced. The tagName and value cannot be null. tagName will be converted to lowercase.

Link copied to clipboard
open override fun toQueryString(escaper: EscapeQuerySyntax): CharSequence

convert to a query string understood by the query parser

Link copied to clipboard
open override fun toString(): String

Every implementation of this class should return pseudo xml like this:

Link copied to clipboard
open override fun unsetTag(tagName: String)

Unset a tag. tagName will be converted to lowercase.