|
Posted by rohan.powle on September 23, 2005, 5:01 pm
Please log in for more thread options
Hi There,
We have developed Search Engine Project using the Microsoft Indexing
Service on ASP.NET using VB.NET.
A Catalog has been configured as TestCatalog which hold Indexed filing
structure of a particular location.
For querying the catalog ADO.NET's is used.
Connection string is as follows:
"Provider=MSIDXS.1;Data Source=TestCatalog"
Query which is supplied is as follows:
"Select Filename,Size,PATH,create,write,DocAuthor,DocLastAuthor from
SCOPE() Where Contains(Contents, ' "goldshield" ' )"
Using this approach proper result set is returned, but what we want in
addition is the query should also return the sentence wherein the word
"Goldshield" is found.
E.g.(This is result returned):
Filename: Goldshield.doc
Size: 190
Path: \Server\Folder1\
Create: 10-jan-2005 00:00
Write: 09-Sep-2005 09:00
DocAuthor: xyz
DocLastAuthor: abc
It should also return the sentence in the file Goldshield.doc where
this word was located
Sentence: "Goldshield is a pharma/ healthcare company which
is based in US/UK/Russia/India."
Any help will be appriciated
Kind Regards,
Rohan Powle
Programmer - T&S
Emp Code: 919
Goldshield Services Pvt Ltd
|