473,585 Members | 2,592 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Search and Asp.Net

Hello,

I am working on a web site which displays various information from a
database:

1. Text articles

2. PDF files for download. The links and displayed information are also
retrieved from a database.

I need to create a search engine on my web site.

I am using Asp.Net 2.0 and SQL 2005.

Could someone give me some tips?

What are the options in the market, in terms of search in Asp.Net?

And what about Google search?

Anyway, I am completly ignorant about this, in terms of development, so
any help will be usefull.

Thanks,

Miguel

Sep 18 '06 #1
4 1630
Hi Miguel,

If I've understood you correctly, you have a database containing various PDF
files and the other data values you mention?

If this is the case then your search would need to be conducted on the SQL
content. You could use a parameterised query to do this, but I would see
ther being an issue with trying to search the content of the PDF files, as
these would be held as image objects.

Unless you have some other meta data fields that indicate the content of the
PDFs?

Anyway, general approach to searching the "links and displayed information"
would be to do a SELECT using the LIKE operator:

CREATE PROCEDURE usp_SearchMyDB
@Criteria VARCHAR(15)
AS
SELECT RecordID, myDescription, myLink
FROM myTableName
WHERE myDescription LIKE '%' + @Criteria + '%'

This uses a wildcard wrap around the criteria value to allow greater
matching opportunity.

You should probably also ensure that you take steps to prevent the @Criteria
value containing potential malicious code (SQL Injection), although sprocs
in general mitigate this somewhat. (I'm not a DBA, so a post to the SQL
newsgroups will probably yield better advice).

Anyway, hope that helps.

Al
"shapper" <md*****@gmail. comwrote in message
news:11******** **************@ d34g2000cwd.goo glegroups.com.. .
Hello,

I am working on a web site which displays various information from a
database:

1. Text articles

2. PDF files for download. The links and displayed information are also
retrieved from a database.

I need to create a search engine on my web site.

I am using Asp.Net 2.0 and SQL 2005.

Could someone give me some tips?

What are the options in the market, in terms of search in Asp.Net?

And what about Google search?

Anyway, I am completly ignorant about this, in terms of development, so
any help will be usefull.

Thanks,

Miguel

Sep 18 '06 #2
The easiest way is to rely on the robots like Google to do their work.

If you want to include a search of your own, you can use microsoft indexing
service to do the work for you.
Microsoft indexing service should be properly configured on your machine
(normally it is).

Then you can query the catalog using normal ADO.NET objects :

http://idunno.org/dotNet/indexserver.aspx

(Note, for PDF files you needs to download a free iFilter implementation at
Adobe (http://www.adobe.com/support/downloa...sp?ftpID=2611))
As I found it, querying the catalog is easy. The difficulty is finding the
most useful query for multiple keyword searches without bothering the user
too much with all of it.

(you can always check a query before in the MMC indexing service snapin
under Control Panel/Administrative tools/system)

Also, do not forget to specify which directories you want to search because
every file in every directory gets included by default.

Last, microsoft has a newsgroup devoted to indexing service.

(I used the indexing service for www.fwo.be (still in beta) and I find it
works quite good (and fast - but not on the home page yet))

Hope this helps.

"shapper" <md*****@gmail. comwrote in message
news:11******** **************@ d34g2000cwd.goo glegroups.com.. .
Hello,

I am working on a web site which displays various information from a
database:

1. Text articles

2. PDF files for download. The links and displayed information are also
retrieved from a database.

I need to create a search engine on my web site.

I am using Asp.Net 2.0 and SQL 2005.

Could someone give me some tips?

What are the options in the market, in terms of search in Asp.Net?

And what about Google search?

Anyway, I am completly ignorant about this, in terms of development, so
any help will be usefull.

Thanks,

Miguel

Sep 18 '06 #3
Hi,

I will have keywords field for every file or article on my web site.

So in this first step querying the database will be enough ... I think.

I want to place a search text box in my web site.

However, I have a problem. I would like to make possible to people use
something like:

England AND Maps, England NOT London, "New York Turism", ...

Just like in Google. Do you think this would be easy?

Is something like that done?

Basically, I need to identify what are the Search Keywords and
operations like "AND", "NOT", etc.

And, of course, transform that in a Query to the database.

This was my first idea ... but I feel it will be really complicated to
do.

Thanks,
Miguel

Van den Driessche Willy wrote:
The easiest way is to rely on the robots like Google to do their work.

If you want to include a search of your own, you can use microsoft indexing
service to do the work for you.
Microsoft indexing service should be properly configured on your machine
(normally it is).

Then you can query the catalog using normal ADO.NET objects :

http://idunno.org/dotNet/indexserver.aspx

(Note, for PDF files you needs to download a free iFilter implementation at
Adobe (http://www.adobe.com/support/downloa...sp?ftpID=2611))
As I found it, querying the catalog is easy. The difficulty is finding the
most useful query for multiple keyword searches without bothering the user
too much with all of it.

(you can always check a query before in the MMC indexing service snapin
under Control Panel/Administrative tools/system)

Also, do not forget to specify which directories you want to search because
every file in every directory gets included by default.

Last, microsoft has a newsgroup devoted to indexing service.

(I used the indexing service for www.fwo.be (still in beta) and I find it
works quite good (and fast - but not on the home page yet))

Hope this helps.

"shapper" <md*****@gmail. comwrote in message
news:11******** **************@ d34g2000cwd.goo glegroups.com.. .
Hello,

I am working on a web site which displays various information from a
database:

1. Text articles

2. PDF files for download. The links and displayed information are also
retrieved from a database.

I need to create a search engine on my web site.

I am using Asp.Net 2.0 and SQL 2005.

Could someone give me some tips?

What are the options in the market, in terms of search in Asp.Net?

And what about Google search?

Anyway, I am completly ignorant about this, in terms of development, so
any help will be usefull.

Thanks,

Miguel
Sep 18 '06 #4
So you have more of a parsing problem. (which should probably go into a
parser newsgroup)
Parsing is not so difficult but that counts for most things you've done more
than once.

What you need is first of all a specification of your "language", just like
a programming language syntax.

You will specify the lexical tokens, probably "word", "and", "or", "not",
"comma", "OpenParenthese s", "CloseParenthes es".
You will write a lexical analyzer that will convert a "character stream"
into a "token stream" (a lexical analyzer has everything to with regular
expressions so you might want to use the regexp class for this)

Using these you will come up with a syntax for your language (this is out of
my head so please see that is what you want):
Query ::= AndFactor [ #comma# Query ]
AndFactor ::= OrFactor [#AND# AndFactor]
OrFactor ::= NotFactor [#OR# OrFactpr]
NotFactor ::= WordList | #Not# NotFactor
WordList ::= Word [WordList] | #OpenParenthese s# Query #CloseParenthes es#

This will most probably result in a typical parse tree. That parsetree will
have to "unparsed" into an SQL substring.

On the other hand, you can probably google-find a nice working parser
already made for you.

Hope this helps

"Van den Driessche Willy" <wi************ *********@gmail .comwrote in
message news:OT******** ******@TK2MSFTN GP05.phx.gbl...
The easiest way is to rely on the robots like Google to do their work.

If you want to include a search of your own, you can use microsoft
indexing
service to do the work for you.
Microsoft indexing service should be properly configured on your machine
(normally it is).

Then you can query the catalog using normal ADO.NET objects :

http://idunno.org/dotNet/indexserver.aspx

(Note, for PDF files you needs to download a free iFilter implementation
at
Adobe (http://www.adobe.com/support/downloa...sp?ftpID=2611))
As I found it, querying the catalog is easy. The difficulty is finding
the
most useful query for multiple keyword searches without bothering the user
too much with all of it.

(you can always check a query before in the MMC indexing service snapin
under Control Panel/Administrative tools/system)

Also, do not forget to specify which directories you want to search
because
every file in every directory gets included by default.

Last, microsoft has a newsgroup devoted to indexing service.

(I used the indexing service for www.fwo.be (still in beta) and I find it
works quite good (and fast - but not on the home page yet))

Hope this helps.

"shapper" <md*****@gmail. comwrote in message
news:11******** **************@ d34g2000cwd.goo glegroups.com.. .
Hello,

I am working on a web site which displays various information from a
database:

1. Text articles

2. PDF files for download. The links and displayed information are also
retrieved from a database.

I need to create a search engine on my web site.

I am using Asp.Net 2.0 and SQL 2005.

Could someone give me some tips?

What are the options in the market, in terms of search in Asp.Net?

And what about Google search?

Anyway, I am completly ignorant about this, in terms of development, so
any help will be usefull.

Thanks,

Miguel


Sep 19 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
4130
by: R. Rajesh Jeba Anbiah | last post by:
Q: Is PHP search engine friendly? Q: Will search engine spiders crawl my PHP pages? A: Spiders should crawl anything provided they're accessible. Since, nowadays most of the websites are been developed with PHP, you are not supposed to doubt that. As a proof that PHP pages could be crawled and indexed, refer this Google search
1
8713
by: Les Juby | last post by:
A year or two back I needed a search script to scan thru HTML files on a client site. Usual sorta thing. A quick search turned up a neat script that provided great search results. It was fast, returned the hyperlinked page title, filename, and the body txt (30 preceding and following words) in context with the search word highlighted. ...
5
2967
by: George | last post by:
Hi, Anyone has the background for explaining? I have made a search on my name and I have got a link to another search engine. The link's title was the search phrase for the other search engine (a wicked phrase). Some but not all of the words of that phrase exist in my website. I reported it and they removed the link but did not give...
3
4197
by: Alastair | last post by:
Hello guys, I've been building a search facility for an intranet site I'm part of developing and we've been building a search engine using Index Server. It mostly works, however there have been a few niggling problems and fixing it seems to be a case of patching errors as we find them so I'm thinking that it might be worth starting the...
39
4377
by: Noticedtrends | last post by:
Can inference search-engines narrow-down the number of often irrelevant results, by using specific keywords; for the purpose of discerning emerging social & business trends? For example, if authors of content subconsciously mention the keywords "lately and noticed" within the same brief sentence, the reader may infer "an unintended message"...
22
11097
by: Phlip | last post by:
C++ers: Here's an open ended STL question. What's the smarmiest most templated way to use <string>, <algorithms> etc. to turn this: " able search baker search charlie " into this: " able replace baker replace charlie "
28
3143
by: joshc | last post by:
If I have an array of data that I know to be sorted in increasing order, and the array is less than 50 elements, and I want to find the first element greater than a certain value, is a simple linear search the best here(for loop from beginning to end of array)? It seems like some other search algorithm like binary or whatever would be of no...
4
2162
by: BenCoo | last post by:
Hello, In a Binary Search Tree I get the error : Object must be of type String if I run the form only with the "Dim bstLidnummer As New BinarySearchTree" it works fine. Thanks for any help on this, Benny
1
7523
Merlin1857
by: Merlin1857 | last post by:
How to search multiple fields using ASP A major issue for me when I first started writing in VB Script was constructing the ability to search a table using multiple field input from a form and having the sql statement dynamically built according to the input provided by the user. I have used the method described here hundreds of times it is...
0
2446
by: passion | last post by:
"Specialized Search Engines" along with Google Search Capability (2 in 1): http://specialized-search-engines.blogspot.com/ Billions of websites are available on the web and plenty of extremely good search engines are there like Google, Yahoo and Live to name few of them. Though this search engines have extremely efficient, complex and...
0
7908
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7836
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8199
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8336
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7950
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6606
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5710
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
1
2343
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
1175
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.