How do we build a DocSearch index?
In this section you will learn how we build a DocSearch index from your page.
#
Everything starts from your pageselectors
#
We extract the payload with to your set of We will focus on the highlighted information depending on your selectors.
#
We iterate through the HTML flow and build the payloadThis payload will be the only data extracted from your page.
#
We iterate through the payload and start pushing recordsWe index the temporary record when we add an element to it (if min_indexed_level
equals 0
)
#
We pile up the elements based on the current temporary recordBased on the position within the flow, we nest elements as much as possible to keep the context and increase the relevancy.
text
element#
We iterate until we match a #
We override the text element when we find a newer one#
We remove the stashed, deeper elements when we add a higher levelContextual information and hierarchy must be updated once we encounter a new level. We are doing that because it highlights a new sub-section not related to the previous one.
If you need any further information, please contact us.