public class DocPropertyStoredField extends DocProperty
logger, reverse
Constructor and Description |
---|
DocPropertyStoredField(BlackLabIndex index,
String fieldName) |
DocPropertyStoredField(BlackLabIndex index,
String fieldName,
String friendlyName) |
DocPropertyStoredField(DocPropertyStoredField prop,
boolean invert) |
Modifier and Type | Method and Description |
---|---|
boolean |
canConstructQuery(BlackLabIndex index,
PropertyValue value)
Can we create a query matching the specified value for our property?
|
int |
compare(DocResult a,
DocResult b)
Compares two docs on this property
|
int |
compare(int docId1,
int docId2)
Compares two docs on this property
|
static DocPropertyStoredField |
deserialize(BlackLabIndex index,
String info) |
boolean |
equals(Object obj) |
PropertyValueString |
get(DocResult result)
Get the desired grouping/sorting property from the DocResult object
|
String |
get(int docId) |
String |
get(PropertyValueDoc doc) |
int |
hashCode() |
String |
name()
Get the name of the property
|
org.apache.lucene.search.Query |
query(BlackLabIndex index,
PropertyValue value)
Generate a query matching the specified value for our property.
|
DocProperty |
reverse()
Reverse the comparison.
|
String |
serialize()
Serialize this HitProperty so we can deserialize it later (to pass it via
URL, for example)
|
getFacetsUrlParam, isReverse, serializeReverse, sortDescendingByDefault, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
ignoreSensitivity, isCompound, propNames, props
comparing, comparing, comparingDouble, comparingInt, comparingLong, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
public DocPropertyStoredField(DocPropertyStoredField prop, boolean invert)
public DocPropertyStoredField(BlackLabIndex index, String fieldName)
public DocPropertyStoredField(BlackLabIndex index, String fieldName, String friendlyName)
public String get(int docId)
public String get(PropertyValueDoc doc)
public PropertyValueString get(DocResult result)
DocProperty
get
in interface ResultProperty<DocResult>
get
in class DocProperty
result
- the result to get the grouping property forpublic int compare(int docId1, int docId2)
docId1
- first docdocId2
- second docpublic int compare(DocResult a, DocResult b)
compare
in interface Comparator<DocResult>
compare
in interface ResultProperty<DocResult>
compare
in class DocProperty
a
- first docb
- second docpublic String name()
ResultProperty
name
in interface ResultProperty<DocResult>
name
in class DocProperty
public static DocPropertyStoredField deserialize(BlackLabIndex index, String info)
public String serialize()
ResultProperty
serialize
in interface ResultProperty<DocResult>
serialize
in class DocProperty
public DocProperty reverse()
DocProperty
reverse
in interface ResultProperty<DocResult>
reverse
in class DocProperty
public int hashCode()
hashCode
in interface ResultProperty<DocResult>
hashCode
in class DocProperty
public boolean equals(Object obj)
equals
in interface Comparator<DocResult>
equals
in interface ResultProperty<DocResult>
equals
in class DocProperty
public org.apache.lucene.search.Query query(BlackLabIndex index, PropertyValue value)
DocProperty
query
in class DocProperty
index
- our index (for finding field properties such as tokenized or not, analyzer, unknown value)value
- value to matchpublic boolean canConstructQuery(BlackLabIndex index, PropertyValue value)
DocProperty
canConstructQuery
in class DocProperty
index
- our index (for finding field properties such as tokenized or not, analyzer, unknown value)value
- value to matchCopyright © 2020 Instituut voor Nederlandse Taal (INT). All rights reserved.