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:
Yonik Seeley 2010-11-02 22:05:30 +00:00
parent 57eee59376
commit 73e0464160
1 changed files with 8 additions and 0 deletions

View File

@ -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) {