Let's say you have this hierarchy of Sections, eg. number is a section name.
Code:
1000
|------1100
| |-------1110
|
|------1200
| |-------1210
| | |-----doc1
| |-------1220
Which is equivalent to paths like
Code:
1000/1100/1110
1000/1200/1210
1000/1200/1220
Doc1 in that structure is at 1000/1200/1210/doc1, and it's CustomData (see
https://keyoti.com/produ.../CustomDataFilters.html) is set to
Code:
Sections=1000,1200,1210
The user chooses to search under Section=1200. Which means that Doc1 should be included in the search.
What you want to do is specify a 'stringlistor' filter (as in above link), with the user's choice of 1200.
This means that the filter engine will look for '1200' in the list specified in 'Sections' in the Custom Data, for each result, if there is a match it is potentially included in the results, if not it's filtered out.Code:
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<link href="/Keyoti_SearchEngine_Web_Common/SearchUnit.css" rel="stylesheet" />
<script src="/Keyoti_SearchEngine_Web_Common/SearchUnit.js"></script>
</head>
<body>
<div id="sew_searchBoxControl"></div>
<div id="sew_filterControls">
<!--Or based checkbox selector for features-->
<div class="sew_stringOrFilter sew_filterControl">
<!-- {"FieldName":"Sections", "ControlType":"checkboxes","Label":"Sections:", "Type":"[b]stringlistor[/b]",
"Options":[{ "value": "1000" }, { "value": "1100" }, { "value": "1110" },
{ "value": "1200" }, { "value": "1210" }], "GetLiveDataFromServer": "false"}-->
</div>
</div>
<div id="sew_searchResultControl"></div>
</body>
</html>
I haven't actually tried it, but I believe that's what you need. It won't look pretty but you can apply style/layout with CSS I think.
Jim
-your feedback is helpful to other users, thank you!