实施搜索 [英] implementing search

查看:106
本文介绍了实施搜索的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在我的项目中实现搜索算法.我该怎么做?搜索将以这种方式进行:用户输入任何关键字后,便可以从我的数据库中搜索几乎所有内容.之后,我想使用一些复选框来优化搜索.

I want to implement a search algorithm in my project. How can I do it? The search is to be done in such a way, that the user is able to search almost anything from my database when he enters any keyword. After this I want to refine my search using some checkboxes.

推荐答案

要尝试的几件事:
1)尝试根据输入来推断用户要搜索的内容
2)根据您的推论,调用您创建的一系列存储过程中的一个,并返回结果以及适当的视图以完善答案
3)创建存储所需的proc,以处理您期望的查询

抱歉,您尝试做的事情不满足于长生不老药.

除非您尝试其中的一些并发布您遇到的问题,否则您可能不会获得比此更具体的答案.希望这可以帮助您入门.

干杯.
A couple of things to try out:
1) Try to infer what the user is trying to search for based on their input
2) Based on what you infer, call one of a series of stored procs that you create and return the results along with an appropriate view for refining the answers
3) Create the stored procs needed to handle the queries you anticipate

Sorry, there''s no elixir for what you''re trying to do.

You probably won''t get a more specific answer than this until you try some of this out and post problems that you''re having. Hope this helps get you started.

Cheers.


这篇关于实施搜索的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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