Display tag search results in the upper right search dropdown

Hey there,

searching for tags in our Xwiki is working, but only if I search for it in the upper right search box and then click on “all search results”. But there’s no tag category displaying the first 3 or so results with that tag (in the dropdown).

I have already configured the Solr search results with an extra tag entry like this:

fq=type:DOCUMENT
qf=property.XWiki.TagClass.tags

But in the search dropdown there’s no extra segment for tags.

How can I achieve this?

Thank you so much
oSIRus

Hello @oSIRus,

I believe what you are looking for is the search suggest administration (https://extensions.xwiki.org/xwiki/bin/view/Extension/Search%20Application#HSearchSuggestAdministration).

There you’ll be able to add a custom source for tags.
Though, I’m sorry, but I don’t know enough to guide you on how to correctly fill the query to search on tags specifically.

Myabe @mflorea could tell you more.

Thanks for your quick reply, but I’ve already put it there:

I’m finding them here:

But not here:

Sorry for the 3 posts but I’m not allowed to send more than one attachment at once.

Hi.

I think the query is lacking __INPUT__ as a first line.

Regards, Simpel

Thanks, but sadly that’s not it. I don’t have it anywhere and the other found documents are displayed in the dropdown.

You should use “Solr Suggest Service” instead of “Wikis Solr Suggest Service” (this one is dedicated to searching subwikis by name), AND make sure to clear your browser’s cache (or force refresh) after updating the Search Suggest administration section because currently that configuration is injected in some JavaScript file that is cached by the browser.

Hope this helps,
Marius