0

I configured my search box for using query suggestion in SharePoint 2010. Unfortunately after 6 search of a term and runing the job Prepare query suggestions and Logging query, it doesn't appear in the suggestion of the search box.

Do you know how I can add terms without using PowerShell?

enter image description here

1

You do not mention your SharePoint version, but for 2013:

Open Central Administration > Service Applications > Search Service Application

From the left hand side choose the Query Suggestions link. [..]

Enable the Show check box and choose the Import from text file option.

Create a text file like this, containing your suggestions:

enter image description here

Upload the text file and click OK

Now run the Prepare query suggestionsjob

This answer is in great part based / borrowed from Jean Paul

For 2010, they are indeed created when typed in 6 times in the search box. But make sure that the search results webpart is configured to show them:

To configure query suggestions

  1. Verify that the user account that is performing this procedure is a site owner on the Search Center site.
  2. On the Search Center site home page, click Site Actions, and then click Edit page.
  3. On the Search Box Web Part menu, click Edit Web Part.
  4. Expand the Query Suggestions node.
  5. Make sure that the Show query suggestions box is selected. If you want to turn off query suggestions, clear the Show query suggestions check box.
  6. If required, change the following settings:
    • Minimum prefix length: The number of letters the user must type before query suggestions are displayed.
    • Suggestion delay (in milliseconds): The number of milliseconds to elapse before query suggestions are displayed.
    • Number of suggestions to display: The number of query suggestions to display in the list.
  7. Click OK.

From Technet.

Also make sure that Query Logging is enabled in the Search Service Application

The only other way is to add them by PowerShell I'm afraid.

  • i don't have access to central admin. i'm in sandbox solution. I read when you search 6 times a term and running the job, the suggestions should be added but it doesn't work – user1898765 Aug 7 '14 at 6:28
  • How can you run timer jobs without having access to Central Admin? It does not matter how many times you search if the checkbox Show search suggestions is not enabled in the Search Service Application – Robert Lindgren Aug 7 '14 at 6:32
  • i'm in a test environment so i can run the job but in production i've to tell to the administrator what he should change. Where is "show search suggestion"? i add printscreen of central admin search (I'm in sharepoint 2010) – user1898765 Aug 7 '14 at 6:40
  • Well that makes most of my answer useless. Updated it for 2010, where you are more limited – Robert Lindgren Aug 7 '14 at 6:56
  • Don't you know how SharePoint consider a term can be add to the suggestions? because clicking 6 times on a result or a search and then run job doens't work – user1898765 Aug 7 '14 at 7:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.