add tests
update doc
Fix #1496 ElasticSearchService index repositories incorrect for xrefs