简体   繁体   English

在Rails搜索引擎上开发类似Google的关键字突出显示

[英]Developing Google like keyword highlighting on a rails search engine

I am developing a clustering search engine and it is time to develop a Google like keyword highlighting. 我正在开发一个集群搜索引擎 ,是时候开发类似Google的关键字突出显示了。 I made it with little Jquery code but is it the correct way to do that. 我用很少的Jquery代码做到了,但这是正确的方法。 And also google does not make distinction like characters "o - ö" and "g - ğ". 而且google不会像字符“ o-ö”和“ g-ğ”那样区分。 How could I do that in an efficient manner? 我怎样才能有效地做到这一点?

And also google does not make distinction like characters "o - ö" and "g - ğ". 而且google不会像字符“ o-ö”和“ g-ğ”那样区分。 How could I do that in an efficient manner? 我怎样才能有效地做到这一点?

Transliterate the characters and find the offsets that way. 音译字符并以这种方式找到偏移量。 I hope Ruby has some built in support for transliteration else you'll be hard pressed to find a good mapping. 我希望Ruby内置一些对音译的支持,否则您将很难找到良好的映射。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM