I can hardly troubleshoot just according to your description above,
Please refer to sample codes below, I think it will be good reference. To remove a search scope, call the method RemoveScope() on the Catalog object and pass along the path of the search scope.
private void RemoveScope_Click(object sender, EventArgs e)
{
string CatalogName = ListOfCatalogs.SelectedItems[0].Text;
string ScopePath =
ListOfScopes.SelectedItems[0].SubItems[3].Text
// ask the user to confirm the deletion of the search scope
if (MessageBox.Show(this, ConfirmDeleteScope, ScopePath,
MessageBoxButtons.YesNo,
MessageBoxIcon.Question) == DialogResult.Yes)
{
// get the catalog handle
ICatAdm Catalog = GetCatalog(CatalogName);
// delete the selected scope
Catalog.RemoveScope(ScopePath);
// refresh the list of scopes
FillScopeList(ListOfCatalogs.SelectedItems[0].Text);
}
}
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue.
If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.
You could download the Indexing server admin console (sample) in the link above, and test it on your side, check whether it still has same problem,
then you can give some modifications according to your requirements.
Regards
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue.
If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.
None
0 Points
43 Posts
Microsoft Indexing Services-Document Search
Sep 25, 2013 09:37 AM|Discussion26|LINK
Hi all,
I m creating catalog on Microsoft Indexing Services on my machine's computer management console.
This catalog need to be added/deleted from asp.net web application.
I want to search document existing my web application's physical folder.
Now i m getting error while removing scope of catalog which i dont want.In
the bellow line:
Catalog.RemoveScope(Scope.Path);
as
Troubleshooting Exceptions: System.ArgumentException
plz help me to overcome this.
Thanx.
SDS.ltd
All-Star
32817 Points
3815 Posts
Re: Microsoft Indexing Services-Document Search
Sep 26, 2013 11:02 PM|Angie xu - MSFT|LINK
Hi,
I can hardly troubleshoot just according to your description above,
Please refer to sample codes below, I think it will be good reference. To remove a search scope, call the method RemoveScope() on the Catalog object and pass along the path of the search scope.
Learn how to add or remove a search scope to a catalog: http://www.codeproject.com/Articles/10871/Administrate-Indexing-Server-from-within-your-appl
Regards
Please remember to click "Mark as Answer" the responses that resolved your issue.
If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.
None
0 Points
43 Posts
Re: Microsoft Indexing Services-Document Search
Sep 30, 2013 06:01 AM|Discussion26|LINK
Thanx for reply .
But i m getting error in the same code as i refered http://www.codeproject.com/Articles/10871/Administrate-Indexing-Server-from-within-your-appl.
So plz let me kno further how to solve this.
SDS.ltd
All-Star
32817 Points
3815 Posts
Re: Microsoft Indexing Services-Document Search
Sep 30, 2013 09:26 PM|Angie xu - MSFT|LINK
Hi,
You could download the Indexing server admin console (sample) in the link above, and test it on your side, check whether it still has same problem,
then you can give some modifications according to your requirements.
Regards
Please remember to click "Mark as Answer" the responses that resolved your issue.
If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.
None
0 Points
43 Posts
Re: Microsoft Indexing Services-Document Search
Oct 10, 2013 02:48 AM|Discussion26|LINK
Hi,
Now i m using below code for searching Files on remote machine with the help of microsoft indexing services catalog.
catalog=MyCatalog resides on remote machine.
My question is : this query returns null and dont give any error.
So i m not able to figure out why it gives null.
Do i need to add something like usernname & pwd for remote machine?
CissoQueryClass q = new CissoQueryClass();
CissoUtilClass util = new CissoUtilClass();
OleDbDataAdapter da = new OleDbDataAdapter();
System.Data.DataSet ds = new System.Data.DataSet("IndexServerResults");
q.Query = TextBox1.Text;
q.DefineColumn("testing = d1b5d3f0-c0b3-11cf-9a92-00a0c908dbf1 testing");
q.Catalog = "query://REmoteserver/MyCatalog";
q.SortBy = "rank[d]";
q.Columns = "rank, path, size, testing";
util.AddScopeToQuery(q, @"D:\test\index-me\", "deep");
util.AddScopeToQuery(q, @"'" + strPath + "'", "deep");
object o = q.CreateRecordset("nonsequential");
da.Fill(ds, o, "IndexServerResults");
DataGrid1.DataSource = ds;
DataGrid1.DataBind();
SDS.ltd
None
0 Points
43 Posts
Re: Microsoft Indexing Services-Document Search
Oct 21, 2013 06:38 AM|Discussion26|LINK
I m using below line of code for accessing remote server catalog document search
select DocTitle,Filename,Size,PATH,URL from remoteservername.mycatalog..Scope()
but that is not returning records.
I m in confusion what else is needed as there is no err no permission message.
SDS.ltd