SOLR中的宏扩展和参数删除有什么区别?

发布于 2025-02-12 09:34:34 字数 395 浏览 1 评论 0原文

我正在使用Solr 8.11。

我在一个与LTR的Rerankqueries中注意到,在EFI上,我使用的是: efi.some_name = $ {queryparam} vs efi.some_name = $ queryparam

我在网络上发现的单个资源来自2014年的博客,称$ {}表示法为宏扩展。

根据我的实验,似乎对$ {queryparam}进行了评估,并且在那里粘贴,例如,如果queryparam =“多措辞字符串”,则efi.some_name =多措辞=多措辞,这将需要包装。在“。

对于$ queryparam中,查询解析器似乎知道将全部值与efi.some_name关联。

什么是这两个之间的区别?

I'm using Solr 8.11.

I've noticed in one of my ReRankQueries with LTR, that on an efi, it matters if I use:
efi.some_name=${queryParam} vs efi.some_name=$queryParam.

The single resource I found on the web was from a blog from 2014, calling the ${} notation, as the macro expansion one.

From what I experimented with, it seems that ${queryParam} is evaluated and the pasted there as is, for example, if queryParam="multi worded string", then efi.some_name=multi worded string, and this will require do be enclosed in ".

For the $queryParam, it seems that the query parser knows to associate the full value to efi.some_name.

What is the difference between those 2?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文