首页 \ 问答 \ Solr突出显示(Solr highlighting)

Solr突出显示(Solr highlighting)

我在这里看到这篇文章,他很好地解释了如何显示突出显示的结果,但对于我来说这不起作用......

我得到了突出显示的全部内容,但是与没有突出显示的原始响应相比,其中的文本非常少...

如何在PHP中将高亮内容与原始结果集合并?


I saw this post here, he explains well howto show a highlighted result, but for me this is not going to work...

I am getting the lst with highlighting and all, but the text in that is very less compared to the original response without highlighting...

How do I merge highlighting content with original result set in php ?


原文:https://stackoverflow.com/questions/5152900
更新时间:2022-01-11 15:01

最满意答案

这是因为主体上的overflow值被传递给根元素,使主体具有默认overflow: visible并中断转换。 请参阅规格的这一部分

设置overflow: hidden在根元素上会防止这种行为,并允许主体充当容器。


This is because the values for overflow on the body are transferred to the root element, leaving the body with the default overflow: visible and breaking the transform. See this section of the spec.

Setting overflow: hidden on the root element will prevent this behavior and allow the body to function as the container.

相关问答

更多
  • 我相信效果( parallax与否)不起作用的原因是因为你使用作为主元素。 可能它使用的某些属性对没有影响。 我假设我们正在谈论perspective和它的供应商前缀对应物。 显而易见的解决方法是使用
    作为主机,而不是 。 我试图使用你链接的网站上的一些样式和图像,但它看起来不太好。 你知道了。 I believe the reason the effect (parallax or not) does not work is because you used < ...
  • Parallax永远不会在移动设备上正常工作 - 这就是原因所在。 移动浏览器旨在尽可能高效地运行,以节省电池寿命。 他们这样做的一种方式是他们在滚动事件期间延迟JS执行。 在症状上,这将显示为视差而非平行,而是在滚动完成后跳转到其新位置。 我建议一旦禁用所有视差到移动视口。 有关此主题的进一步阅读: http : //developer.telerik.com/featured/scroll-event-change-ios-8-big-deal/ Parallax will never work pro ...
  • 微调#container的left属性就可以了: left: -7px; Fine tuning the #container's left property will do the trick: left: -7px;
  • 由于codepen使用iframe,我认为通过body标签获取滚动元素存在一些问题。 当我把它改成window它起作用了。 这是完整的片段(CSS方法表示法已更改): $(window).scroll(function(){ var x = $(this).scrollTop(); $('.footer_parallax').css({'background-position': '0% '+parseInt(-x/10)+'px'}); }); Since codepen uses ifr ...
  • 这是因为主体上的overflow值被传递给根元素,使主体具有默认overflow: visible并中断转换。 请参阅规格的这一部分 。 设置overflow: hidden在根元素上会防止这种行为,并允许主体充当容器。 This is because the values for overflow on the body are transferred to the root element, leaving the body with the default overflow: visible and ...
  • CSS具有perspective属性,您可以将其与zoom功能结合使用,以实现元素“后面”或“前面”的其他元素,从而以不同的速度滚动。 有很多关于这方面的资源,@ dwreck08给出的是最好的资源之一: http ://keithclark.co.uk/articles/pure-css-parallax-websites/ 这是一个快速复制: .parallax { height: 100vh; overflow-x: hidden; overflow-y: auto; -web ...
  • 代码很难阅读,也许发布到CodePen.io。 我发现创建视差效果最简单的方法是使用Skrollr.js 。 这是一个简单的视差滚动教程 。 I solved the problem. var diffheight = $divs.eq(0).height() - liHeight; Spelled diffHeight with a small "h" and when i used it i called it with a big "H" scroll = ~~(offset/liHeight * d ...
  • 我会使用你的scrollPos变量来操纵CSS属性transform: translateY(n); 像这样的东西: var transY = scrollPos / 2; $('.page-title').css('transform':'translateY(' + transY + ')'); 当然可以使用数字来获得所需的效果。 Transform CSS属性有助于提高性能( https://www.paulirish.com/2012/why-moving-elements-with-transl ...
  • 这是Edge的一个确认问题 ,所以看起来我的实现似乎是合理的。 This is a confirmed issue with Edge, so it seems perhaps my implementation is otherwise sound.
  • 问题完全取决于您的单一错字导致无效标记。 您的
    而不是
    结尾
    。这会导致解析器变得困惑,并且不会正确计算偏移量/高度。 您可以通过使用W3验证服务验证您的HTML来确保您拥有有效的标记。 您还可以使用CSS Validator验证您的CSS (尽管在这种情况下CSS有效)。 修正
    解决了问题,如下面的示例所示: body { font-family ...

相关文章

更多

最新问答

更多
  • 如何使用自由职业者帐户登录我的php网站?(How can I login into my php website using freelancer account? [closed])
  • 如何打破按钮上的生命周期循环(How to break do-while loop on button)
  • C#使用EF访问MVC上的部分类的自定义属性(C# access custom attributes of a partial class on MVC with EF)
  • 如何获得facebook app的publish_stream权限?(How to get publish_stream permissions for facebook app?)
  • 如何并排放置两个元件?(How to position two elements side by side?)
  • 在MySQL和/或多列中使用多个表用于Rails应用程序(Using multiple tables in MySQL and/or multiple columns for a Rails application)
  • 如何隐藏谷歌地图上的登录按钮?(How to hide the Sign in button from Google maps?)
  • Mysql左连接旋转90°表(Mysql Left join rotate 90° table)
  • 带有ImageMagick和许多图像的GIF动画(GIF animation with ImageMagick and many images)
  • 电脑高中毕业学习去哪里培训
  • 电脑系统专业就业状况如何啊?
  • IEnumerable linq表达式(IEnumerable linq expressions)
  • 如何在Spring测试中连接依赖关系(How to wire dependencies in Spring tests)
  • Solr可以在没有Lucene的情况下运行吗?(Can Solr run without Lucene?)
  • 如何保证Task在当前线程上同步运行?(How to guarantee that a Task runs synchronously on the current thread?)
  • 在保持每列的类的同时向数据框添加行(Adding row to data frame while maintaining the class of each column)
  • 的?(The ? marks in emacs/haskell and ghc mode)
  • 一个线程可以调用SuspendThread传递自己的线程ID吗?(Can a thread call SuspendThread passing its own thread ID?)
  • 延迟socket.io响应,并“警告 - websocket连接无效”(Delayed socket.io response, and “warn - websocket connection invalid”)
  • 悬停时的图像转换(Image transition on hover)
  • IIS 7.5仅显示homecontroller(IIS 7.5 only shows homecontroller)
  • 没有JavaScript的复选框“关闭”值(Checkbox 'off' value without JavaScript)
  • java分布式框架有哪些
  • Python:填写表单并点击按钮确认[关闭](Python: fill out a form and confirm with a button click [closed])
  • PHP将文件链接到根文件目录(PHP Linking Files to Root File Directory)
  • 我如何删除ListView中的项目?(How I can remove a item in my ListView?)
  • 您是否必须为TFS(云)中的每个BUG创建一个TASK以跟踪时间?(Do you have to create a TASK for every BUG in TFS (Cloud) to track time?)
  • typoscript TMENU ATagParams小写(typoscript TMENU ATagParams lowercase)
  • 武陟会计培训类的学校哪个好点?
  • 从链接中删除文本修饰(Remove text decoration from links)