SOLR中的宏扩展和参数删除有什么区别?
我正在使用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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论