Title Back Colour Keyoti Title Line Title Curve
Blue Box Top

set an indexDirectory Path programmatically. - SearchUnit - Forum

Welcome Guest Search | Active Topics | Log In | Register

Options
prashant
#1 Posted : Tuesday, February 3, 2015 10:21:25 AM
Rank: Member

Groups: Registered

Joined: 2/3/2015
Posts: 12
Hi,

1.
on Page_Load Event of an "Example1_Simple/default.aspx" page, value of an indexDirectory assign as
configuration.IndexDirectory = @"D:\test\TestApplication\Keyoti_Implmentation\CM\Uploads\IndexDirectory".

in this case "IndexDirectory" folder is not in a root directory of an application, created inside Uploads folder.
it indexes all files from a path, which is mention in a "ImportFileSystemFolder" function.

but when enter a character in "searchengine:searchbox" control of an "Example1_Simple/default.aspx" page for searching a result, it gives an error "an exception occur on the server : Directory holding D:\test\TestApplication\Keyoti_Implmentation\CM\IndexDirectory\configuration.xml does not exist and need to created first."

2. how to set an indexDirectory Path programmatically for "searchengine:searchbox" control of an "Example1_Simple/default.aspx" page.
Jim
#2 Posted : Tuesday, February 3, 2015 3:46:40 PM
Rank: Advanced Member

Groups: Administrators, Registered

Joined: 8/13/2004
Posts: 2,669
Location: Canada
Hi, if you've verified that configuration.xml actually exists in

D:\test\TestApplication\Keyoti_Implmentation\CM\IndexDirectory
then my guess is that it is actually a permissions problem. Since your index directory is not under the app root you need to setup permissions manually. Please see Setup here

http://keyoti.com/produc...20Index%20Directory.htm

2. what you have appears fine

Jim

-your feedback is helpful to other users, thank you!

-your feedback is helpful to other users, thank you!


Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.




About | Contact | Site Map | Privacy Policy

Copyright © 2002- Keyoti Inc.