mirror of
https://github.com/apache/lucene.git
synced 2025-03-04 07:19:18 +00:00
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…
x
Reference in New Issue
Block a user