@Immutable public class RelikeQuery extends ConstantScoreWeightQuery
Query
implementation that matches some value by document property as like pattern.ConstantScoreWeightQuery.ConstantWeight, ConstantScoreWeightQuery.ConstantWeightScorer
Modifier | Constructor and Description |
---|---|
protected |
RelikeQuery(String field,
String relikeValue) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
areValid(org.apache.lucene.index.IndexableField... fields)
Checks if the given fields are valid for the document matched by a particular query or not.
|
org.apache.lucene.search.Query |
clone() |
String |
toString(String field) |
createWeight, field
protected boolean areValid(org.apache.lucene.index.IndexableField... fields)
ConstantScoreWeightQuery
areValid
in class ConstantScoreWeightQuery
fields
- a IndexableField
array instance which was loaded by the scorer for the current field; never null
and never empty.true
if the array of fields is valid and document should be returned by the query or false
if not.public String toString(String field)
toString
in class org.apache.lucene.search.Query
public org.apache.lucene.search.Query clone()
clone
in class org.apache.lucene.search.Query
Copyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.