Solr查询结果使用*(Solr query results using *)
我想提供部分匹配,所以我正在将*添加到搜索查询的末尾。 我注意到的是,gatorade的搜索查询将返回12个结果,而gatorade *返回7.因此*似乎是1或多个,而不是0或多个......我怎么能实现这一点? 我是否会在Solr中进行部分匹配? 谢谢。
I want to provide for partial matching, so I am tacking on * to the end of search queries. What I've noticed is that a search query of gatorade will return 12 results whereas gatorade* returns 7. So * seems to be 1 or many as opposed to 0 or many ... how can I achieve this? Am I going about partial matching in Solr all wrong? Thanks.
原文:https://stackoverflow.com/questions/2595420
最满意答案
我不确定我是否会遵循,但我认为你想要的是能够在Fossil中创建一个“多个头部在一个分支上”的缝合。 如果是的话,那么Fossil支持这一点,只是它叫分支的头“叶”,这个过程被称为“分叉”。
为此,你
fossil update good_revision
接着
fossil commit --allow-fork
你现在可以产卵
fossil ui
,导航到你的分支,看到它有两片叶子。你现在可以关闭当时的叶子。
请注意,虽然支持,但这似乎不是一个推荐的做法。 相反,Fossil推荐了一种相当特殊的方法来抛弃变化:
将“bad”叶子上的分支重命名为“错误”(或者如果该分支尚不存在,则创建该分支)。 通过这样做,您可以有效地将所产生的亚分类标记为错误。
请注意,名称“错误”的名称只是一个约定; 此分支不存在于新创建的存储库中。
关闭“坏”的叶子。
使用
fossil update
恢复到最后状态,继续黑客攻击。由于该“最后良好”提交仍继承其父提交的分支标记,因此您记录的下一个提交也将继承它,并且不会在分支上出现“错误”。
举个例子, 看看它是如何在SQLite仓库中看到的 - 在这个分支上有很多提交的短的提交链。 另请参阅本文 。
I'm not sure I quite follow but I think what you want is to be able to create a "multiple heads on one branch" sutuation in Fossil. If yes, then Fossil does support this, just it calls branch's heads "leaves", and this process is called "forking".
To do that, you
fossil update good_revision
and then
fossil commit --allow-fork
You may now spawn
fossil ui
, navigate to your branch and see it having two leaves.You now may close the then-current leaf.
Note that, while supported, this does not appear to be a recommended practice. Instead, Fossil recommends a rather peculiar approach for throwing away changes:
Rename the branch at the "bad" leaf to "mistake" (or create that branch if it doesn't yet exist). By doing this you effectively "mark" the resulting subleaf as a mistake.
Note that the name "mistake" name is just a convention; this branch does not exist in a freshly created repository.
Close the "bad" leaf.
Return to the last-good state using
fossil update
, continue hacking.Since that "last-good" commit still inherits the branch tag of its parent commit, the next commit you record will also inherit it and won't be on the branch "mistake".
For an example, see how it looks in the SQLite repo—there's a bunch of assorted short chains of commits on this branch. See also this.
相关问答
更多-
在Mercurial中使用hg恢复(Using hg revert in Mercurial)[2023-05-03]
是的,您可以删除它们。 这是一个安全功能,如果你回复了你不想恢复的东西。 Yes, you can delete them. It's a safety feature in case you reverted something you didn't mean to revert. -
第一个区别是恢复可以在工作副本的一个子集上工作,而更新在整个工作副本上工作。 另一个区别是当你想回到上一次提交的版本以外的时候会发生什么。 如果我们有修订(上限是承诺的,小写是工作副本的更改,父版本是C) A-B-C-d update -C -r B会给你 A-B-C 将您的工作副本设置为B,任何更改将导致从B(父版本设置为B)分支 A-B-C \e revert -r B会给你 A-B-C-b' 其中b'是一组更改,在中间提交的更改中撤消所有内容,在这种情况下,它将撤消所有的C。现在只要加入b ...
-
恢复化石中的局部变化(Revert local changes in fossil)[2022-05-05]
fossil revert。 >fossil help revert Usage: fossil revert ?-r REVISION? ?FILE ...? Revert to the current repository version of FILE, or to the version associated with baseline REVISION if the -r flag appears. If FILE was part of a rename opera ... -
如何自动跟踪构建版本中的SCM修订版本?(How to keep track of the SCM revision in the build versions automatically?)[2024-03-01]
正如Dave所回答的:“你可以在头文件中放入$ VERSION $或类似的东西,让代码可以访问它,它应该可以与任何svn客户端一起工作,下面是更多的信息: http://svnbook.red- bean.com/en/1.4/svn.advanced.props.special.keywords.html “ As Dave has answered: " You could put $VERSION$ or something alike in a header file to have it acce ... -
我不确定我是否会遵循,但我认为你想要的是能够在Fossil中创建一个“多个头部在一个分支上”的缝合。 如果是的话,那么Fossil支持这一点,只是它叫分支的头“叶”,这个过程被称为“分叉”。 为此,你 fossil update good_revision 接着 fossil commit --allow-fork 你现在可以产卵fossil ui ,导航到你的分支,看到它有两片叶子。 你现在可以关闭当时的叶子。 请注意,虽然支持,但这似乎不是一个推荐的做法。 相反,Fossil推荐了一种相当特殊的方法 ...
-
我真的发现我从未使用过GUI来处理Mercurial,即使我有一个合适的可用(即TortoiseHg) - 命令行界面非常好,你可以启用graphlog扩展来查看ascii-art图表存储库就在终端中。 I really find that I never use a GUI for working with Mercurial even when I have a decent one available (i.e. TortoiseHg) -- the command line interface is ...
-
Jenkins mercurial poll SCM排除文件或其他过滤器(Jenkins mercurial poll SCM exclude files or other filter)[2022-06-27]
看看这个问题 。 看起来像只推送标签不是现在的问题。 但是你的工作产生了额外的提交,无法弄清楚如何防止Jenkins开始工作。 Take a look at this issue. Looks like pushing only tags is not a problem as for now. But your job produces additional commit, cant figure out how to prevent Jenkins from starting a job.. -
我们正在使用ClearCase(有其优点和难点 ),我们正在考虑DVCS 。 现在,我们正在Windows(msysgit)和“中央”Solaris服务器上引入Git,它确实满足了我们在合并和分配方面的需求(用于离岸开发) 但是我们必须为开发人员设置“中央”存储库作为参考,为此我们必须使用gitolite (pu分支)来实现其细粒度的访问级别(每个用户或每组的repo,branch,目录访问,基于LDAP) 与Eclipse的集成正在进行中 ,我们对支持级别充满信心,因为所有Eclipse项目都已从CVS切 ...
-
在.hgsub文件中,您可以使用http://[user[:pass]@]host[:port]/[path][#revision] (或local/filesystem/path[#revision] )语法(参见hg help urls获取更多示例)将subrepo锚定到特定修订版。 对于该修订字符串,您甚至可以使用#branchname或#tagname以便跟踪特定分支(ex stable )或可移动标记(例如: release )的提示,以便在分支或标记上时仅获取新版本远程子参数更新。 (copie ...
-
化石可以从Git的快速导出或SVN转储中导入 为了导入Mercurial repo,您先前已将其推送到Git(使用hg-git)或SVN(使用hgsubversion) Fossil can import from Git's fast-export or SVN's dump In order to import Mercurial repo, you have previously push it to Git (with hg-git) or SVN (with hgsubversion)