在电子商务网站中搜索的最佳方式 [英] Best way of searching in ecommerce website

查看:65
本文介绍了在电子商务网站中搜索的最佳方式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在适当的电子商务网站上按名称,品牌,产品代码和c#中的关键字搜索产品的最佳条件是什么。



我是什么尝试过:



i尝试使用json调用一个Web方法,结果返回但是需要更多的时间来搜索。我想要快速搜索。什么是更好的搜索方式?#div class =h2_lin>解决方案

对于自由文本类型搜索,如果有很多产品你可能想要使用像SQL的自由文本搜索,或者您甚至可以使用lucene来索引您的产品数据。谷歌两种方式获取更多信息,自由文本可能更容易启动和运行,但lucene可能会提供更好的性能和灵活性。



对于产品名称,产品等代码等,只要您将数据存储在产品表中的自己的字段中并将索引应用于字段,然后搜索它们应该非常快。


what is the best criteria to search a product by name,brand,product code and a keyword in c# for proper ecommerce website .

What I have tried:

i try using json a web method called and the results return but it takes a little more time to search.i want fast search. what is the better way to search in c#

解决方案

For free text type searching if there are a lot of products you'll probably want to use something like SQL's freetext search, or you could even use lucene to index your product data. Google both approaches for more info, freetext is probably the easier to get up and running but lucene will probably give better performance and flexibility.

For things like product title, product code etc as long as you store that data in its own field in the product table and apply indexes to the fields then searching them should be quite fast anyway.


这篇关于在电子商务网站中搜索的最佳方式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆