(index) Log keyword ids on hex format

This commit is contained in:
Viktor Lofgren 2023-09-01 15:40:24 +02:00
parent 2b00cd632d
commit d31d8ec5b0
2 changed files with 13 additions and 5 deletions

View File

@ -60,6 +60,6 @@ public class ReverseIndexEntrySource implements EntrySource {
@Override
public String indexName() {
return "Full:" + wordId;
return "Full:" + Long.toHexString(wordId);
}
}

View File

@ -230,16 +230,24 @@ public class IndexQueryService {
var priority = subquery.searchTermsPriority;
for (int i = 0; i < includes.size(); i++) {
logger.info(queryMarker, "{} -> {} I", includes.get(i), searchTerms.includes().getLong(i));
logger.info(queryMarker, "{} -> {} I", includes.get(i),
Long.toHexString(searchTerms.includes().getLong(i))
);
}
for (int i = 0; i < advice.size(); i++) {
logger.info(queryMarker, "{} -> {} A", advice.get(i), searchTerms.includes().getLong(includes.size() + i));
logger.info(queryMarker, "{} -> {} A", advice.get(i),
Long.toHexString(searchTerms.includes().getLong(includes.size() + i))
);
}
for (int i = 0; i < excludes.size(); i++) {
logger.info(queryMarker, "{} -> {} E", excludes.get(i), searchTerms.excludes().getLong(i));
logger.info(queryMarker, "{} -> {} E", excludes.get(i),
Long.toHexString(searchTerms.excludes().getLong(i))
);
}
for (int i = 0; i < priority.size(); i++) {
logger.info(queryMarker, "{} -> {} P", priority.get(i), searchTerms.priority().getLong(i));
logger.info(queryMarker, "{} -> {} P", priority.get(i),
Long.toHexString(searchTerms.priority().getLong(i))
);
}
}