org.apache.lucene.search.regex

Class RegexQuery

public class RegexQuery extends MultiTermQuery implements RegexQueryCapable

Implements the regular expression term search query. The expressions supported depend on the regular expression implementation used by way of the RegexCapabilities interface.

See Also: RegexTermEnum

Constructor Summary
RegexQuery(Term term)
Constructs a query for terms matching term.
Method Summary
booleanequals(Object o)
protected FilteredTermEnumgetEnum(IndexReader reader)
RegexCapabilitiesgetRegexImplementation()
inthashCode()
voidsetRegexImplementation(RegexCapabilities impl)
Defines which RegexCapabilities implementation is used by this instance.

Constructor Detail

RegexQuery

public RegexQuery(Term term)
Constructs a query for terms matching term.

Method Detail

equals

public boolean equals(Object o)

getEnum

protected FilteredTermEnum getEnum(IndexReader reader)

getRegexImplementation

public RegexCapabilities getRegexImplementation()

Returns: The implementation used by this instance.

hashCode

public int hashCode()

setRegexImplementation

public void setRegexImplementation(RegexCapabilities impl)
Defines which RegexCapabilities implementation is used by this instance.

Parameters: impl

Copyright © 2000-2007 Apache Software Foundation. All Rights Reserved.