问题标签 [opengrok]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
search - Can I combine fuzzy and proximity searches in Apache Lucene's standard syntax?
I am searching a codebase indexed by OpenGrok, the -a option has been enabled to allow the first character of a search term to be a wildcard. I would like to find all occurrences of method foo
that take some string parameter (foo("")
with one or more characters in the string) and the method is within 5 words of variable bar
.
With the breakup of words provided by the standard tokenizer I can use +full:"foo bar"~5
to get all foo(
near bar
, but excluding the parameterless methods is a problem because ("
is indexed as two whitespace characters, so for example foo("jar")
seems to match foo AND \ \ AND jar AND \ \"
. The syntax doesn't look like it supports a search for this combination (even without the wildcard string rather than "jar"
) with a ""~5
proximity search. Any ideas on how to achieve all or part of this, given that changing the tokenizer is not an option at the moment?
opengrok - 替代opengrok
我正在使用 OpenGrok 的替代品。我无法正确配置它。我想要的是浏览代码,就像我在 Visual Studio 中一样。我想要一个菜单,其中包含“转到定义”、查找参考等的最小选项。如何实现?
java - 有 OpenGrok API 吗?
OpenGrok有 API吗?我有兴趣在 Perl 或 Java 中挖掘结果。目前,我可以对结果执行 HTML 报废,但似乎不太理想。
根据其网站,它利用了 Lucene,但除了通过 HTML 之外,没有关于如何连接到它的真实信息。
lucene - opengrok 真的需要单独的暂存目录吗?
在示例安装和配置说明中,似乎建议OpenGrok需要两个暂存区,理由是,一个区域是 index-regeneration-work-area,另一个是生产区域,它们是旋转的每个索引重新生成。
这真的有必要吗?我可以只有一个区域而不是两个区域吗?
我正在寻找一个特定于 opengrok 的答案,而不是一个可能遇到的竞争条件的一般列表。
svn - 无法在 opengrok 上获取历史和注释作品
我只是按照这里的步骤操作: http ://www.hierax.org/2009/10/opengrok-on-ubuntu-w-tomcat6.html 并让 opengrok 与索引搜索一起工作,但历史记录和注释不起作用。
具体来说,在查看文件时,“主页”、“历史记录”、“注释”、“行号”等按钮出现在显示的源文件上方的功能区中,大多数是按照他们说的做的链接,但是历史和注释不是链接。
当我单击文件夹名称以显示文件列表时,每个文件都有微小的 HAD 链接,其中 H 和 A 分别代表历史和注释。这次它们是链接(例如,“A”用 a=true 扩充 URL),但是当我单击它时,显示的文件没有任何注释。
SVN 和 TFS 都可能发生这种情况。
在同一个 opengrok 安装中,可能只有一些文件受到影响(这在仅 TFS 的安装中观察到)。
这是我生成 configuration.xml 的命令
sudo java -jar /var/lib/opengrok/bin/opengrok.jar -W /var/lib/opengrok/configuration.xml -c /usr/bin/ctages -P -S -v -s /var/lib/opengrok /src/ -d /var/lib/opengrok/data -w opengrok -L 抛光 -r on
java - 在使用 tomcat 部署期间避免临时 404 错误
每次我复制OpenGrok/dist/source.war
到时,tomcat 都会在复制后的几秒钟内向我的用户/var/tomcat/webapps/
生成带有错误的空白错误页面。404 Not Found
这是不可接受的。通过手动将文件复制到 tomcat 目录中,我没有正确部署.war
,还是某种 OpenGrok 错误?404
我如何确保在部署过程中没有一个访问者会受到不当影响?
clearcase - OpenGrok:ClearCaseRepository 不工作(缺少二进制文件?)
启动 Catalina 运行时,我收到以下警告:
警告:ClearCaseRepository 不工作(缺少二进制文件?):
任何想法,任何人?
谢谢,阿维
opengrok - OpenGrok:是否可以复制文件完整路径?
当 OpenGrok 有文件搜索结果时,
我找不到将匹配文件结果的完整路径名复制到剪贴板的方法,因此我可以在 Visual Studio 或任何其他编辑器中打开该文件。
如果我浏览文件结果,则顶部 pf 页面上有外部参照完整路径,但他的问题是它有正斜杠而不是反斜杠。我无法轻松地将其转换为可用于文件->打开对话框的路径
有没有办法轻松做到这一点?
java - 构建 OpenGrok 源失败
我想通过此链接(https://github.com/OpenGrok/OpenGrok/wiki/How-to-build-OpenGrok-from-source)从源代码构建 OpenGrok。当我使用 ant 命令构建 OpenGrok 时,遇到以下错误:
任何人都可以帮我一把吗?提前致谢!
java - “./OpenGrok 索引”失败
我正在尝试实现 OpenGrok 来搜索一些源代码树。运行“./OpenGrok deploy”时没有错误,但后来当我运行“./OpenGrok index”时,出现了很多类似的错误,我将在下面附上。我要搜索的完整源代码树是一个非常庞大的项目,大约 20G 大,奇怪的是,如果源代码很小,我可以成功运行“./OpenGrok index”。所以我不确定 OpenGrok 是否有任何文件数量限制或大小限制,如果有,我可以在哪里进行更改?或者是因为其他一些原因。
谢谢!