Comments (6)
看到了图片,不太明白你demo图片检索输入的是什么,就“理解“?
我自己也用的es,没有出现高亮的问题,我是直接把html先去掉了然后送到es去索引,你也可以试试。
至于html_strip的高亮错误应该配置的原因,因为给定了输入流Jcseg是可以准确的返回返回词条的位置,另外尝试下term_vector=with_positions_offsets高亮机制,也就是通过词条位置的机制来高亮!
另外jcseg会自动英文转成小写,所以lowercase的filter可以不需要!
from jcseg.
@lionsoul2014 图片检索词为“理想”;
在搜索结果第一条可以看到正文里面前面为<正>,然后这一条高亮部分全部向左偏移了2个字符;
搜索结果第二条,由于没有出现html标签,所以没有出现偏移;
直接去掉html标签固然可行;
但是jcseg与html_strip搭配情况下,应该是造成了偏移问题;
lowercase的多谢提示
建议考虑一下从代码上避免这种问题吧,目前我的term_vector=yes
from jcseg.
@lionsoul2014 该问题先Close吧,我后面跟踪一下,看看其他分词插件是否也有同样问题;
如果其他分词插件不存在偏移问题,那jcseg还是要从自身把这个问题解决一下;
否则,就是我个人配置不规范啦;
还有就是2.0版本大概什么时候发布
from jcseg.
2.0昨儿发布了
from jcseg.
html_strip这个问题还得深入挖下,因为Jcseg无非就是拿到他去掉html后的字符流进行分析,得到的词条的位置自然是去掉html后的偏移位置。
在solr中配合html_strip使用是可以的!
from jcseg.
行,有啥进展post一下
from jcseg.
Related Issues (20)
- 结合ES使用时词典更新问题 HOT 3
- jcseg2.2.0在elasticsearch5.6.5中access denied的问题!且安装了这个的节点能够正常运行但是数据基本是废了! HOT 3
- hi 我现在使用es 6.2.2,使用jcseg的插件数组字段分词的时候会有问题 HOT 16
- 同义词或是中文数字转阿拉伯数字的问题 HOT 10
- 如何不对切分结果进行小写字母的转换? HOT 1
- **仓库无法下载2.3.0版本 HOT 2
- 关于ILexicon.CJK_WORD类型的疑问 HOT 1
- 怎么识别文中的人名 HOT 3
- Missing jcseg pom for 2.3.0 in central repository HOT 2
- 本机的外网网址为什么不支持 HOT 3
- BUILD FAILED 2.4.0 HOT 3
- jcseg-server内存占用 HOT 1
- 一类英文分词错误的问题 HOT 2
- 2.4.1版本 match_phrase 查询查不到结果 HOT 4
- 请问词库的文件格式有什么要求吗? HOT 1
- 请问最多分词这个功能支持了吗 HOT 1
- 请问如何识别身份证呢 HOT 1
- 多语言支持
- DETECT模式下的setEnWordSeg(false)似乎不生效 HOT 3
- solr 9.0+ 有计划后续支持吗?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jcseg.