【问题标题】:Search for XML Nodes in Azure DevOps Server Code Search在 Azure DevOps 服务器代码搜索中搜索 XML 节点
【发布时间】:2021-06-24 15:35:33
【问题描述】:

我们最近为 ADS 2020.1 配置了 ElasticSearch,现在允许我们进行代码搜索。

我查看了Documentation,但无法找到我当前“问题”的答案。

假设我想找到我们拥有此代码的所有文件

<Project>

当我像&lt;Project&gt; 一样搜索它时,我在代码中得到很多“项目”的点击。 当我搜索"&lt;Project&gt;" 时,我得到与上面相同的结果。 也试过\&lt;Project\&gt;"\&lt;Project\&gt;"

如何正确搜索代码中的 括号?

对于包括 = 符号或类似内容的搜索,我有同样的问题,我找不到将其包含在内并以文本形式搜索的方法。

【问题讨论】:

    标签: azure-devops


    【解决方案1】:

    经过进一步搜索,我在这里找到了另一个主题

    Is there a way to make TFS code search recognize the "@" symbol?

    That's not supported.
    
    Checked for some characters in code search. You can't use the symbol characters except * and ? as part of your search query, which including below characters: . , : ; / \ ` ' " @ = ! # $ & + ^ | ~ < > ( ) { } [ ]. The search will simply ignore these symbols.
    

    https://developercommunity.visualstudio.com/t/allow-non-alphanumeric-characters-in-code-search/893393

    【讨论】:

      猜你喜欢
      • 2018-12-14
      • 1970-01-01
      • 1970-01-01
      • 2013-03-05
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多