java智能化提示
PHPz
PHPz 2017-04-17 11:10:59
0
2
545

想做一个问题智能化提示系统。需求是这样的。公司下面各个省的都有运维。问题总是那一些。但是他们还是重复的问。想做一个问题智能提示系统。类似于淘宝的店小二。搜索问题,列出相似问题的解决方案。 这个如果单纯设计的话一张表 里面有question answer 搜索的时候ajax到数据库搜索问题like 数据库里面的question 就可以了。但是感觉这不能叫智能化提示。各位有没有这方面的经验呢?

PHPz
PHPz

学习是最好的投资!

reply all(2)
黄舟

Depending on the size of the problem:

  1. If the total number of problems is not large: store it directly in the memory of the application system and define the data structure, you can completely eliminate the need for a database;
  2. If there are a certain amount of problems, putting them in memory will have an impact on the application. Put them in the database, define the table structure, and use the like query like you said. As for the choice of database, currently Commonly used ones are ok, even sqllite will work;
  3. If the total number of questions is large, you can consider nosql databases such as mongodb. The built-in queries can also meet your needs;
  4. If the total number of questions is very large, maybe you need to use a search engine, Solr or build it yourself based on Lucene. Let me briefly talk about this. Search engines generally calculate the similarity of the search questions first, and then compare them with the question library. Compare existing questions (of course, the preprocessing strategy for this question can also be used in the previous methods), and find out existing matching questions [In fact, search engines are of course much more complicated than this. I think you Does the so-called intelligent prompt mean something like this? ];
  5. If the total amount of the problem is huge and involves a lot more things, it is equivalent to Baidu knowing about it. I can’t help with this and I can’t give any good suggestions;
PHPzhong

1, use full-text index for query 2. Analyze user click logs and adjust the sorting of query results

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template