我安装了Drupal 7和ubercart。 我正在使用标准的shaerch引擎。 如何使用以下查询在我的商店中搜索: p>
我需要更改哪些文件才能搜索部分单词? p>
div> SELECT * FROM table WHERE product_desc LIKE%search_word% code> p>
I got Drupal 7 and ubercart installed. I'm using standart shaerch engine. How can i search in my store using queries like this:
SELECT * FROM table WHERE product_desc LIKE %search_word%
What files i need to change to search with part-words?
我安装了Drupal 7和ubercart。 我正在使用标准的shaerch引擎。 如何使用以下查询在我的商店中搜索: p>
我需要更改哪些文件才能搜索部分单词? p>
div> SELECT * FROM table WHERE product_desc LIKE%search_word% code> p>
The core search module only does exact match search. You could try the Porter-Stemmer module to get the "LIKE" search if your site is English language only.
A more flexible approach would be to use the Views module and create a search form that is for your products. Performance would be better and you could easily extend the functionality in the future.
报告相同问题?