BibIndex: fix for external fulltext indexing

* Reads record IDs from the new data model.

* BibDocs might have no get_text() method.

Co-authored-by: Piotr Praczyk <piotr.praczyk@gmail.com>
Reviewed-by: Tibor Simko <tibor.simko@cern.ch>