BAZYNGO-1313: use TermQuery in GenericIndex.getResource, using Term
generated by ToDocumentMapper. This way hardcoding of identifier field
name is avoided, and non-text fields can be used.