-
Notifications
You must be signed in to change notification settings - Fork 399
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to highlighting #101
Comments
Well, I think you can use the getHits() method to get the original content from ES. fox example
|
@itbdw Thanks, but seems that Paginator does not support getHits(). |
@AlexLove77
true, add a config and replace the _source data with highlight data seems to be a good idea. I've updated my pull request which should solve this problem. see #104 |
@itbdw Many thanks, 蛤蛤~ |
@itbdw when can use highlight in Elasticquent? |
@nathan-zhu The author still did not merge the pr. I use my fork for now... |
@itbdw 给个连接呗,多谢。用你的 如何安装呢? |
我直接先用的这个,然后自己手动改的一些文件 #104 |
@itbdw 感谢提供这个高亮功能,我还有个问题也请帮看下,下面是多字段模糊匹配的ES查询语句。
my code is :
get result from es :
这种多字段的高亮不支持吗,怎么只返回了一个字段的高亮内容。请指教 |
@nathan-zhu 我刚刚看到。。。。试了一下没问题啊。。。两个都高亮了 diff 里只是同一个字段高亮匹配到多个结果的时候只取第一个。 |
I find that the elasticquent model doesn't include a highlighting object so that I need to get it from
ElasticquentPaginator
withcomplexSearch
manually like this:$resultPaginator->hits['hits'][0]['highlight']
Is there any way to get it easier or add it as an optional parameter?
Thanks!
The text was updated successfully, but these errors were encountered: