This article outlines how to troubleshoot issues with the search backend related to the actual entity results not surfacing as expected.
Be sure to follow the How to Start Debugging Backend Search Issues help article for general troubleshooting steps first.
General Troubleshooting Steps
You will need to compare the search log for the query you’re troubleshooting against the searchable fields set in the configuration. Start by opening both of these:
- Check the vertical configuration.
- Navigate to Search > [[Experience Name]] > Verticals.
- Select the relevant vertical. Here you will see the vertical searchable fields.
- Open the search log for the query you’re seeing issues for. Either:
- Navigate to Search > [[Experience Name]] > Test Search or a Configuration sub-tab. Run a test search and then select Debug Query from the drop-down menu.
- If you’ve already run the search in a staging or production link, navigate to Search > [[Experience Name]] > Search Logs and click on the relevant search log. Use the search bar or filters to help you find the correct search log or run the search again to have it appear at the top.
This entity is not appearing in my results at all
The following steps walk you through factors that may cause the entity to not show up in the results. Once you determine what the issue is, you may:
- Understand that this result is expected and leave it as is
- Update the configuration searchable fields or query rules
- Update the content for the entity by opening the entity edit page for it
Once you resolve your issue, you may skip the remaining steps.
- Examine the vertical searchable fields and note what is enabled for the vertical this entity is in.
- Check the Inferred Filters: In the search log, find the relevant vertical and see if any inferred filters were applied to the vertical. If so, the entity must meet all inferred filters applied exactly.
- Check the semantic similarity: If semantic search is enabled, check the semantic similarity of the entity (you need to run the query in vertical search and open that search log if it is not appearing in universal search). If this is below the default 0.3, the entity won’t appear in results.
- Check for query rules: Check whether there was an active query rule that prevented this entity from being returned. Active query rules are shown in the search factors box in the top right of the search log.
- Check the keyword search/document search/phrase match matches: If these searchable field types are enabled, in the search log, review the search tokens and then the searchable field matches next to each entity in the relevant vertical to see what part of the query the algorithm is matching on.
- Confirm the entity in question has these matches.
- If the search query consisted of multiple words (e.g. “entity-level search factors”) that were each taken as a separate token (e.g. “entity-level”, “search”, and “factors”), but really should be one token, set up a custom phrase.
- Navigate to Search > [[Experience Name]] > General Settings.
- Under Custom Phrases, enter the desired phrase.
- Check for saved filters: Entities will not appear if they do not fall in a set saved filter.
- Navigate to Search > [[Experience Name]] > Verticals.
- Select the relevant vertical, click on the Settings tab, and find the Saved Filters property.
- Note whether a saved filter is selected here and update if needed.
- To see what filters are used and what entities are included in this saved filter:
- Navigate to Content > Entities.
- Click on the funnel icon in the top right corner.
- Click on the name of the desired filter to apply that filter.
- The applied filters show at the top of the screen and entities that fall in the saved filter are listed below.
This entity is appearing higher/lower in the results than expected
- Check sort order: In the search log, look for the relevant vertical and see what, if any, sort order was applied.
- Add or edit the sorting configuration by navigating to Search > [[Experience Name]] > Verticals and click on the Sorting tab. Then add or edit the rules.
- Check the semantic similarity: Review the semantic similarity for the relevant entity and the ones around it.
- If both semantic search and keyword search are enabled, and the semantic similarity exceeds 0.65, the algorithm automatically boosts that result regardless of its token matches.
- Check for query rules: Check whether there was an active query rule that prevented this entity from being returned. Active query rules are shown in the search factors box in the top right of the search log.
- Check the keyword search/document search/phrase match matches: If these searchable field types are enabled, in the search log, review the search tokens and then the searchable field matches next to each entity in the relevant vertical to see what part of the query the algorithm is matching on.
- Review the number of token matches for this entity compared to others. A higher number of matches would be ranked higher in the results.
- Confirm the entity in question has these matches.
- If there is a phrase match on a different entity with the same number of token matches, phrase match will apply a boost on that entity so it appears higher in search results.
- If the search query consisted of multiple words (e.g. “entity-level search factors”) that were each taken as a separate token (e.g. “entity-level”, “search”, and “factors”), but really should be one token, set up a custom phrase.
- Navigate to Search > [[Experience Name]] > General Settings.
- Under Custom Phrases, enter the desired phrase.
Entities are no longer showing up in my Semantic Search
- Open the search log for the query you’re seeing issues for. Either:
- Navigate to Search > [[Experience Name]] > Test Search or a Configuration sub-tab. Run a test search and then select Debug Query from the drop-down menu.
- If you’ve already run the search in a staging or production link, navigate to Search > [[Experience Name]] > Search Logs and click on the relevant search log. Use the search bar or filters to help you find the correct search log or run the search again to have it appear at the top.
- You may also want to open a previous search log where the relevant entity did appear in results. Use the search bar on the Search Logs page to filter for the search term and open one where the entity did appear.
- Review the semantic score of entities and the difference in semantic scores.
- Keep in mind that the data science models behind Semantic Search are constantly being improved. This occasionally causes results that were barely relevant before to become irrelevant.
Entities with scores below my semantic thresholds are appearing
- Check the vertical threshold.
- Navigate to Search > [[Experience Name]] > Verticals.
- Find the relevant vertical note the value for the Threshold.
- Open the search log for the query you’re seeing issues for. Either:
- Navigate to Search > [[Experience Name]] > Test Search or a Configuration sub-tab. Run a test search and then select Debug Query from the drop-down menu.
- If you’ve already run the search in a staging or production link, navigate to Search > [[Experience Name]] > Search Logs and click on the relevant search log. Use the search bar or filters to help you find the correct search log or run the search again to have it appear at the top.
- Review the semantic score of the top entity result in that vertical and review the vertical score. As a reminder, the vertical threshold controls how relevant any entity within the vertical must be for the vertical to appear at all. As long as the top result is above the threshold, the product is working as intended.
Comments
0 comments
Article is closed for comments.