Add filtering options for refining code search results
<!-- triage-serverless v3 PLEASE DO NOT REMOVE THIS SECTION --> *This page may contain information related to upcoming products, features and functionality. It is important to note that the information presented is for informational purposes only, so please do not rely on the information for purchasing or planning purposes. Just like with all projects, the items mentioned on the page are subject to change or delay, and the development, release, and timing of any products, features, or functionality remain at the sole discretion of GitLab Inc.* <!-- triage-serverless v3 PLEASE DO NOT REMOVE THIS SECTION --> ### Insight The most commonly desired filter options that users mentioned were: - language - file extension - filename - date range - author - class name ### Supporting evidence Two of these filter options actually exist today (file extension and filename). Some users mentioned knowing that they believed it was possible in GitLab to filter by those, but said they would forget what the proper syntax was and not use it. Others simply didn’t realize it was a current capability, most likely because today there is no indication unless a user goes to the documentation for Advanced Search (which the current link to the docs on the result page also doesn’t indicate there are details found there). Since these were all current users of GitLab, many of them referenced patterns for filtering that they were familiar with across other areas of the product – specifically the Issue and MR list pages. Using tokens (dropdowns) was not only familiar to them, but some users also mentioned that it would help with discoverability of filtering options, as they often forget or are not aware of the current syntax options. ### Action <!--Describe the next step or action that needs to take place as a result of the research. The action should be clearly defined, achievable, and directly tied back to the insight. Make sure to use directive terminology, such as: conduct, explore, redesign, etc. --> ### Resources - :dove: [Dovetail insight - filtering options](https://dovetailapp.com/projects/e7ae7dac-69e6-44c5-8927-fbf14cd5f8a8/insights/present/148e47ee-7a5f-4671-acc5-d5d17287ff15) - :dove: [Dovetail insight - filtering method](https://dovetailapp.com/projects/e7ae7dac-69e6-44c5-8927-fbf14cd5f8a8/insights/present/d21f74b0-1216-4267-a9ec-377c61dd64bd) - :mag: [Research issue](https://gitlab.com/gitlab-org/ux-research/-/issues/1179)
epic