Re: Search and Asp.Net

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



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.

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/downloads/detail.jsp?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" <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





.



Relevant Pages

  • Re: Boolean text search
    ... If you have Microsoft Office and have installed the Microsoft Outlook Integrated File ... your My Documents folder as you specified you would select the following: ... For some information about using Indexing Service, click the Action menu in Computer ... contents of *.pdf files. ...
    (microsoft.public.windowsxp.general)
  • RE: Indexing Service not responding after upgrade ?
    ... 270057 Upgrade to Windows 2000 Indexing Service Deletes Custom Catalogs ... Microsoft Application Center & Index Server Support ...
    (microsoft.public.inetserver.indexserver)
  • Re: search for meta data?? (like keywords, author)
    ... If you have Microsoft Office and have installed the Microsoft Outlook Integrated File ... the easiest way to search for "specific meta data" is using the ... For some information about using Indexing Service, click the Action menu in Computer ... Public Newsgroups using the Microsoft Communities Web Page. ...
    (microsoft.public.windowsxp.general)
  • RE: Searching a website with Indexing Server
    ... 185985 Using Index Server to Query and Display META TAG Information ... Microsoft Application Center & Index Server Support ... | I've installed and setup MS indexing service on my webserver. ...
    (microsoft.public.inetserver.indexserver)