GithubHelp home page GithubHelp logo

Comments (7)

medcl avatar medcl commented on June 10, 2024

原来es1.4之后,standard filter行为变了,没有把他们按空格切分了,
你把standard换成word_delimiter就行了
es1.7测试通过.

from elasticsearch-analysis-pinyin.

starckgates avatar starckgates commented on June 10, 2024

1.6上我做了测试,也是可以的。
主要是有些参数我不知道怎么设置,就比如说word_delimiter,我没找到filter的es内置参数都有什么?这个在哪儿能找到呢?
另外一点,就是如何控制自定义的分词,比如刘德华吧,如果按照刚才的分词方法,可以分成 ldh liu de hua,使用查询的时候使用其中任何一个都能查的到,其实这种分词查询最后也也是根据分词term来查对吧?
不知道您了解百度的查询机制吗?我是一直想做一个公司自己用的“查询建议”,就是在输入pinyin ,开头字母或者中文的时候可以自动完成,比如搜 zg,zhong,zhongguo,**,都会自动列举出**的词。现在实现的程度一般,因为总会把无关的词搜出来,比如搜出 中科院,国家图书馆,这些无关的内容。

from elasticsearch-analysis-pinyin.

starckgates avatar starckgates commented on June 10, 2024

大神,现在 ik插件和pinyin插件支持1.7吗?我现在这两个都在尝试使用,所以ES版本一直没更新到1.7,还在使用1.6。

from elasticsearch-analysis-pinyin.

starckgates avatar starckgates commented on June 10, 2024

还有就是多音字怎么处理呢?比如“长治”,这里读‘chang’,可是分词得出的是‘zhang’,所以,cz有结果,zz无结果。

from elasticsearch-analysis-pinyin.

bsc2xp avatar bsc2xp commented on June 10, 2024

我的需求和 starckgates 一样,但是我只实现了中文的自动提示。想看看能否借助这个插件实现类似百度的拼音提示效果

from elasticsearch-analysis-pinyin.

domyway avatar domyway commented on June 10, 2024

我的需求也一样,如何配置呢

from elasticsearch-analysis-pinyin.

medcl avatar medcl commented on June 10, 2024

新版本已解决多音歧义问题,如有问题可重开本帖

from elasticsearch-analysis-pinyin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.