Title Back Colour Keyoti Title Line Title Curve
Blue Box Top

SearchBoxOptions error loading IndexDirectory - SearchUnit - Forum

Welcome Guest Search | Active Topics | Log In | Register

Options
bill
#1 Posted : Tuesday, December 6, 2016 2:42:00 PM
Rank: Advanced Member

Groups: Registered

Joined: 2/29/2008
Posts: 43
I have a search page that's working fine, with a SearchBox and a SearchResult control. The SearchResult has IndexDirectory="~/App_Data/IndexDirectory".

Now I've added a SearchBoxOptions control with the SearchBoxId set. When the page loads, I get error

Directory holding D:\web\site\IndexDirectory\configuration.xml does not exist and needs to be created first.

I don't see a way to set the IndexDirectory for the SearchBoxOptions.
Jim
#2 Posted : Tuesday, December 6, 2016 5:42:30 PM
Rank: Advanced Member

Groups: Administrators, Registered

Joined: 8/13/2004
Posts: 2,669
Location: Canada
You just need to set AutoGenerateFromIndexDirectory="~/App_Data/IndexDirectory" in SearchBoxOptions. It's not an obvious name, but it goes with a group of properties for autogeneration of options;

AutoGenerateContentCheckBoxes
AutoGenerateLocationAllOptionText
AutoGenerateLocationDropDown

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


bill
#3 Posted : Tuesday, December 6, 2016 9:30:13 PM
Rank: Advanced Member

Groups: Registered

Joined: 2/29/2008
Posts: 43
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.