public class NameQuery
extends org.apache.lucene.search.Query
NameQuery
implements a query for the name of a node.Constructor and Description |
---|
NameQuery(Name nodeName,
IndexFormatVersion version,
NamespaceMappings nsMappings)
Creates a new
NameQuery . |
Modifier and Type | Method and Description |
---|---|
void |
extractTerms(Set<org.apache.lucene.index.Term> terms) |
Name |
getName() |
org.apache.lucene.search.Query |
rewrite(org.apache.lucene.index.IndexReader reader) |
String |
toString(String field) |
public NameQuery(Name nodeName, IndexFormatVersion version, NamespaceMappings nsMappings)
NameQuery
.nodeName
- the name of the nodes to return.version
- the version of the index.nsMappings
- the namespace mappings of the index.public Name getName()
public org.apache.lucene.search.Query rewrite(org.apache.lucene.index.IndexReader reader) throws IOException
rewrite
in class org.apache.lucene.search.Query
IOException
public void extractTerms(Set<org.apache.lucene.index.Term> terms)
extractTerms
in class org.apache.lucene.search.Query
Copyright © 2004–2022 The Apache Software Foundation. All rights reserved.