Search by specific label?
Hi
I've searched for this, but I can't seem to find anything.
Is it possible to search a viewport by a specific label?
I'd like a user to be able to search a help center themed viewport by a label from the search field. Find all articles labelled "audit" as an example.
I know the search field is there, I guess is there an advanced search function to accomplish this?
-
Hi Garry,
thanks for reaching out to us.
Sure this is possible with Viewport. We have a recipe page where we explain how you can create your own search template. At the very bottom you find parameters you can add to your search query to filter your search results. One of the parameters is "l" which stands for "labels". This will filter your search results by the given label.
Let me know if that helps and if you need any further informations.
Thanks and have a nice day.Best Regards,
Steffen
-
Hi Steffen,
We would like to use label as a way to predict the search terms that users will enter. For example, if we had a page that talked about currency exchange rates, we could add the label "FX" and the page would come up when the user searched for "FX". I do realise that we could add "FX" to the article title or content, but that's not ideal.
Thanks!
Steve
-
Hi Steve,
thanks for the additional information - so you want to use labels as some kind of keywords for the page which are respected by the search. Unfortunately this isn't possible currently and there is no workaround.
I'll add this requirement to our user requirement board to see how we can solve this problem the best way.
If you have any other requirements regarding this topic, please let us know by just adding another reply here.
Is there anything else I can help you with?
Thanks and have a nice day.
Best Regards,
Steffen
Please sign in to leave a comment.
Comments
5 comments