lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Victor Podberezski <>
Subject problem in setNextReader from FieldComparator
Date Thu, 15 Jan 2015 19:35:40 GMT
i'm struggling with a migration from lucene 2.4 to 2.9
I'm trying to migrate from SortComparatorSource to FieldComparator.

I cannot make it works right after a lot of tests.
I noted that inside the setNextReader method not all the stored field's
terms are retrieved.

For example i have one document with this content in the field "a":

"pub.generic1 pub.generic1.zonahome
pub.generic1.seccion.seccion1 pub.generic1.seccion.seccion1.prio.10"

I made the query:

'a:( pub.generic1.zonahome)

I need then to sort the documents retrieved using the value
"pub.generic1.zonahome.prio.1" from the field "a". but this value is not
inside the values inside the setNextReader.

the setNextReader method from my custom fieldcomparator looks like this:

public void setNextReader(IndexReader reader, int docBase) throws
IOException {
docValues = FieldCache.DEFAULT.getInts(reader, field, new
FieldCache.IntParser() {
public final int parseInt(final String val) {
 return parsePriority(val);

If I debug the method printing the "parseInt value" I see that some values
expected are not showing.

Someone has any clue what is happening?


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message