Weights are for fine tuning search relevance.
They can ensure that your visitors find the right thing when using search.
Before laying out instructions, there are three key terms to understand:
Engine: Your search engine. An Engine contains one or more DocumentTypes, DocumentTypes contain many fields.
Field: When your webpages are indexed they are broken down into a set of fields. Each field will contain a value like the title of your webpage, the body content, the url, and more. You can control which fields are added during indexing by adding Site Search Meta Tags.
DocumentType: Your Engine can contain multiple DocumentTypes which contain different sets of fields. For example, your Engine may contain books, magazines, and videos -- given that each would require a different set of fields, each would have its own DocumentType. Multiple DocumentTypes are optional -- you may only have one, the default, which is known as page. It represents a webpage.
Weights provide fields with a value between 1 and 10.
Altering a field's weight above 1 will increase its significance.
By default, each field will have a weight of 1 and each field will carry the same weight.
That means that during search, your keywords will match equally across all fields.
You can see how this might not be ideal...
Consider that we have an article called Safety Guidelines.
A visitor searching for safety should wind up within this article.
However, because the word safety appears within the body text of other documents more frequently, and you have several other guidelines, you may not return the right result. If the title field carried the most weight, then the likelihood that a user would discover the Safety Guidelines article is much greater.
Let us see how this would look within the dashboard...
First, login to Site Search and then click into your Engine.
Next, locate the Weights option within the Sidebar or the Engine Overview.
Within the Weights feature, click on Add Field.
A dropdown menu will appear, within it you will see your fields.
The image shows the default page fields.
Selecting a field reveals the Impact Slider.
Drag the slider to a value between 1 and 10 -- 10 is the highest priority.
Back to our Safety Guidelines case...
Recall that results were being muddled by body text.
There are three fields we would alter:
By raising the weight of title and popularity, our search results will score matches within the title higher than in the body. How much higher depends on the difference between the body and title fields.
We have added popularity too, as that will ensure that users find content that other users tend to find, allowing you to ensure quality across your most important pages.
Now that you have added some fields and tuned their respective weights, try a few sample queries within the search box on the right side of weights interface. Fine tune your weights until the results appear how you would like them. To delete a field, mouse over the existing field until the x appears.
What if you have multiple DocumentTypes?
Each DocumentType allows for its own weighing parameters.
You can change them within the header:
You have now configured weights. Great!