I have indexed a Date field "foo" which initially is null all over the set of
objects. This means that f does not even end up in the index and
when a projection query is shot against hiebernate search I end up
with
Code:
Caused by: java.lang.RuntimeException: field "foo" does not appear to be indexed
at org.apache.lucene.search.FieldCacheImpl$11.createValue(FieldCacheImpl.java:465)
at org.apache.lucene.search.FieldCacheImpl$Cache.get(FieldCacheImpl.java:72)
at org.apache.lucene.search.FieldCacheImpl.getAuto(FieldCacheImpl.java:424)
at org.apache.lucene.search.FieldSortedHitQueue.comparatorAuto(FieldSortedHitQueue.java:338)
at org.apache.lucene.search.FieldSortedHitQueue$1.createValue(FieldSortedHitQueue.java:172)
at org.apache.lucene.search.FieldCacheImpl$Cache.get(FieldCacheImpl.java:72)
The data will be there in a while but not initially. Quite peculiar (or is
there good reasons?) that the projection query does throw an exception.
Isn't it more reasonable with an empty result.
How should I proceed? Suggestions?