简体   繁体   English

使用 PHP 进行产品搜索

[英]Product Search with PHP

I'm looking for a product search function for an onlineshop.我正在寻找在线商店的产品搜索功能。 The shop has 3500 items.这家商店有 3500 件商品。 The items can be found in a mysql database or in a file.这些项目可以在 mysql 数据库或文件中找到。 I want to get the products which match the search term best.我想获得与搜索词最匹配的产品。 The search term should be compared with the productname.应将搜索词与产品名称进行比较。

Because a search function is one of the most important parts of an onlineshop i'm looking for a very efficent solution.因为搜索功能是网上商店最重要的部分之一,所以我正在寻找一种非常有效的解决方案。 Does someone know a solution which is easy to implement?有人知道易于实施的解决方案吗? It's doen't need to be for free.它不需要是免费的。

UPDATE:更新:

What i tryed until now is to compare the term with the productname.到目前为止,我一直尝试将术语与产品名称进行比较。 First i'm looking if the term could be found 1on1.首先,我在寻找是否可以在 1on1 中找到该术语。 After that i take the single words in the term and check if they could be found in productnames.之后,我取术语中的单个单词并检查它们是否可以在产品名称中找到。 This works, but it's not accurate enough.这有效,但不够准确。

I'm looking for a product search function for an onlineshop.我正在寻找在线商店的产品搜索功能。 The shop has 3500 items.这家商店有 3500 件商品。 The items can be found in a mysql database or in a file.这些项目可以在 mysql 数据库或文件中找到。 I want to get the products which match the search term best.我想获得与搜索词最匹配的产品。 The search term should be compared with the productname.应将搜索词与产品名称进行比较。

Because a search function is one of the most important parts of an onlineshop i'm looking for a very efficent solution.因为搜索功能是网上商店最重要的部分之一,所以我正在寻找一种非常有效的解决方案。 Does someone know a solution which is easy to implement?有人知道易于实施的解决方案吗? It's doen't need to be for free.它不需要是免费的。

UPDATE:更新:

What i tryed until now is to compare the term with the productname.到目前为止,我一直尝试将术语与产品名称进行比较。 First i'm looking if the term could be found 1on1.首先,我在寻找是否可以在 1on1 中找到该术语。 After that i take the single words in the term and check if they could be found in productnames.之后,我取术语中的单个单词并检查它们是否可以在产品名称中找到。 This works, but it's not accurate enough.这有效,但不够准确。

I'm looking for a product search function for an onlineshop.我正在寻找在线商店的产品搜索功能。 The shop has 3500 items.这家商店有 3500 件商品。 The items can be found in a mysql database or in a file.这些项目可以在 mysql 数据库或文件中找到。 I want to get the products which match the search term best.我想获得与搜索词最匹配的产品。 The search term should be compared with the productname.应将搜索词与产品名称进行比较。

Because a search function is one of the most important parts of an onlineshop i'm looking for a very efficent solution.因为搜索功能是网上商店最重要的部分之一,所以我正在寻找一种非常有效的解决方案。 Does someone know a solution which is easy to implement?有人知道易于实施的解决方案吗? It's doen't need to be for free.它不需要是免费的。

UPDATE:更新:

What i tryed until now is to compare the term with the productname.到目前为止,我一直尝试将术语与产品名称进行比较。 First i'm looking if the term could be found 1on1.首先,我在寻找是否可以在 1on1 中找到该术语。 After that i take the single words in the term and check if they could be found in productnames.之后,我取术语中的单个单词并检查它们是否可以在产品名称中找到。 This works, but it's not accurate enough.这有效,但不够准确。

I'm looking for a product search function for an onlineshop.我正在寻找在线商店的产品搜索功能。 The shop has 3500 items.这家商店有 3500 件商品。 The items can be found in a mysql database or in a file.这些项目可以在 mysql 数据库或文件中找到。 I want to get the products which match the search term best.我想获得与搜索词最匹配的产品。 The search term should be compared with the productname.应将搜索词与产品名称进行比较。

Because a search function is one of the most important parts of an onlineshop i'm looking for a very efficent solution.因为搜索功能是网上商店最重要的部分之一,所以我正在寻找一种非常有效的解决方案。 Does someone know a solution which is easy to implement?有人知道易于实施的解决方案吗? It's doen't need to be for free.它不需要是免费的。

UPDATE:更新:

What i tryed until now is to compare the term with the productname.到目前为止,我一直尝试将术语与产品名称进行比较。 First i'm looking if the term could be found 1on1.首先,我在寻找是否可以在 1on1 中找到该术语。 After that i take the single words in the term and check if they could be found in productnames.之后,我取术语中的单个单词并检查它们是否可以在产品名称中找到。 This works, but it's not accurate enough.这有效,但不够准确。

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

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