|
Methods DocumentBuilderHelper#extractObjectFromFieldable DocumentBuilderHelper#extractStringFromFieldable are deprecated.
These can't be simply removed but need to be replaced with a better implementation. We're currently guessing the course of action from what we have in the IndexableField but this is built on the assumption of how things are getting encoded today. If we take advantage of some of the new encoding features (new flexibility in Lucene4) these assumptions are no longer safe. The only safe approach would be to base ourselves on the indexing metadata: for example we'd attempt to extract a Number from a field if we're mapping this field as Number. We should also probably fail-fast rather than try alternative strategies.
|