简体   繁体   English

如何修改搜索模块(Drupal 7)以搜索子词

[英]How to modifying the Search module (Drupal 7) to search also sub words

I tried to modified the Search module to search also partial words. 我试图修改搜索模块以搜索部分单词。 for example when I look for the word "Drupal" I want to be able to search: "drup" etc. 例如,当我寻找“ Drupal”一词时,我希望能够搜索:“ drupal”等。

I tried to use the 'Fuzzy Search' module, but it is not good for me. 我尝试使用“模糊搜索”模块,但这对我不利。 I found a patch file to add this option to the 'Search' module in Drupal 6 here: 我在此处找到了一个补丁文件,可以将此选项添加到Drupal 6的“搜索”模块中:

https://drupal.org/node/103548 https://drupal.org/node/103548

but my site is in Drupal 7. Can someone give me a patch file for Drupal 7? 但是我的站点在Drupal 7中。有人可以给我Drupal 7的补丁文件吗?

You can use finder module or Apache Solr Search . 您可以使用finder模块Apache Solr Search But for Apache Solr Search you will need additional server configuration. 但是对于Apache Solr Search,您将需要其他服务器配置。

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

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