简体   繁体   English

ASP.NET电子商务网站的搜索功能

[英]Search Functionality for ASP.NET Ecommerce Site

I have an Ecommerce/Online Shopping site with 20 Subpages. 我有一个包含20个子页面的电子商务/在线购物网站。 It has various products and i want to implement a search functionality for it. 它具有各种产品,我想为其实现搜索功能。 The search could be anything like "White shirt" , "Black Shoes", "Leather Belt" so on. 搜索内容可能类似于“白衬衫”,“黑鞋”,“皮带”等。

How do i implement the search mechanism ? 如何实现搜索机制? The site is expected to grow in years. 该网站预计将在几年内增长。

I know solutions like SQL free-text, Full-text search, Lucene.Net, Lucene.NET solr , ElasticSearch. 我知道诸如SQL自由文本,全文搜索,Lucene.Net,Lucene.NET solr和ElasticSearch之类的解决方案。

but which one would be appropriate for the scenario. 但是哪种情况适合该方案。 You know people search weird things ? 您知道人们搜寻奇怪的东西吗?

Using LinQ, you can use statements like: 使用LinQ,您可以使用如下语句:

var _searchWord = myTextbox.Test;
myContainer.All.Where(s => s.mysearchcriteria.Contains(_searchWord));

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

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