add doc_data builder that can be use by javascript search engine