Merge indexes of multiple HTML Exports
Hi,
we exported multiple sites from confluence as HTML and everything works fine.
Now, we have to implement a fulltext search functionality, that uses all index data from multiple
HTML Exports. You use lunr for fulltext search, but the generated lunr-index.js files are somehow modified, so a merging of the indexData through file operation seems to be overheaded.
Is there any smart solution for that?
Many thanks in advance!
Liz Cieszynski
-
Hi Liz,
Thanks for reaching out to us.
It would be great if you could send us some examples in relation to the kind of modifications to the index that you're referring to – we can then further investigate this matter for you.
You can simply send this information to support@k15t.com and it'll automatically create a support ticket for you. We can then continue the discussion within the ticket.
Cheers, Thomas (K15t Software)
-
Hi Thomas,
Tanks for your reply, but this ticket can be closed now. :)
I already solved the problem by programming a little java tool, that merges the data of all the little lunr-data.js and lunr-index.js files from several HTML-Exports (merges json structures). By execution of the tool, a main lunr-data.js and a main lunr-index.js will be created.
These both can now be imported via importscripts in the main index.html. So a fulltext search over all HTML exported Sites is possible.Cheers, Liz
Please sign in to leave a comment.
Comments
2 comments