Pnp modern search box custom search SharePoint List items

Deleted
Not applicable

Hi everyone,

 

I have created a Sharepoint list with different columns. In the main page I created a site where you have the search box and search result. In the search box it should suggests only the items which are available in the SharePoint list but it doesn't and also I have to type the whole correct word to get any result from my SharePoint list. 

 

I hope someone can help me out!

2 Replies

Hi @Deleted,

There could be several reasons why your SharePoint search box isn't suggesting items from your SharePoint list and why you have to type the whole correct word to get a result. Here are a few common issues and solutions:

  1. Crawl Settings: Make sure the SharePoint list is included in the search scope and the crawl settings are configured correctly.

  2. Managed Properties: Ensure the columns from your SharePoint list have been properly mapped to managed properties in the Search Service Application.

  3. Query Suggestions: Verify that query suggestions are enabled for your SharePoint Online environment. Query suggestions allow for autocomplete functionality in the search box.

  4. Reindexing: Consider reindexing your SharePoint list to ensure that the latest data is available for search.

  5. Search Result Type: Ensure that the search result type is properly configured to display items from your SharePoint list.

  6. Search Refiners: Consider adding search refiners to allow users to filter search results based on specific columns in your SharePoint list.

  7. Custom Search Solution: If the above solutions don't resolve the issue, consider developing a custom search solution to display results from your SharePoint list.

It's important to thoroughly test your search configuration to ensure that it's working as expected and to make any necessary adjustments to meet your specific requirements.

 

@Adnan Amin Thanks for your answer. Now it works. Do you know how I can have custom suggestions for the search box? I am newbie and the documentation doesn't help further.