mirror of https://github.com/apache/lucene.git
SOLR-2205: add ord to string field
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1030254 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
57eee59376
commit
73e0464160
|
@ -90,6 +90,14 @@ class StrFieldSource extends FieldCacheSource {
|
|||
return (double)intVal(doc);
|
||||
}
|
||||
|
||||
public int ordVal(int doc) {
|
||||
return termsIndex.getOrd(doc);
|
||||
}
|
||||
|
||||
public int numOrd() {
|
||||
return termsIndex.numOrd();
|
||||
}
|
||||
|
||||
public String strVal(int doc) {
|
||||
int ord=termsIndex.getOrd(doc);
|
||||
if (ord == 0) {
|
||||
|
|
Loading…
Reference in New Issue