Something that'd be very useful is dynamic queries for reindexing in
jpa. For example, lets say I have an entity that has a 'expiryDate'
field. I don't want to index anything that has already expired. So
when reindexing, the set of entities returned depends on the current
time.
So what'd be nice is if I could register some kind of object that would
be responsible for returning a Query object to compass, which compass
can then use. So instead of the select query being a String in
EntityInformation, it were an object that returned a Query object
(default implementation would be the way it works now), that could be
plugged in by users to specify criteria at runtime for entity info.