Re: Search and Asp.Net
- From: "Van den Driessche Willy" <willy.van.den.driessche@xxxxxxxxx>
- Date: Tue, 19 Sep 2006 11:28:32 +0200
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", "OpenParentheses", "CloseParentheses".
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] | #OpenParentheses# Query #CloseParentheses#
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" <willy.van.den.driessche@xxxxxxxxx> wrote in
message news:OTM7mMy2GHA.3428@xxxxxxxxxxxxxxxxxxxxxxx
The easiest way is to rely on the robots like Google to do their work.indexing
If you want to include a search of your own, you can use microsoft
service to do the work for you.at
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
Adobe (http://www.adobe.com/support/downloads/detail.jsp?ftpID=2611))the
As I found it, querying the catalog is easy. The difficulty is finding
most useful query for multiple keyword searches without bothering the userbecause
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
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" <mdmoura@xxxxxxxxx> wrote in message
news:1158583195.004616.141880@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
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
.
- References:
- Search and Asp.Net
- From: shapper
- Re: Search and Asp.Net
- From: Van den Driessche Willy
- Search and Asp.Net
- Prev by Date: Re: newbie: security & themes!
- Next by Date: Re: Checking password input with regular expression
- Previous by thread: Re: Search and Asp.Net
- Next by thread: Re: master pages and atlas
- Index(es):
Relevant Pages
|