public class DublinCoreQuery extends Object implements Query
Query.LogicalOperator, Query.Operator| Modifier and Type | Field and Description |
|---|---|
protected String |
_metadata
The Dublin Core metadata name.
|
protected String |
_value
The value to test.
|
private static Map<String,String> |
NAME_TO_FIELD |
| Constructor and Description |
|---|
DublinCoreQuery(String metadata,
String value)
Create a Dublin Core query.
|
| Modifier and Type | Method and Description |
|---|---|
String |
build()
Build the solr query string representing the Query object.
|
private static final Map<String,String> NAME_TO_FIELD
public DublinCoreQuery(String metadata, String value)
metadata - The metadata name, lower-cased and wihout 'dc:' prefix, such as "title" or "date".value - The value to test.public String build() throws QuerySyntaxException
Querybuild in interface QueryQuerySyntaxException - if the query can't be built because of a syntax error.