Details
Description
If I enter global warming in the first search box and broadcasting corporation in the second search box, I get a solr error.
It works if I enter global warming in the first box and broadcasting in the second search box.
It works if I enter global warming in the first box and broadcasting in the second search box.
Issue Links
| This issue is incorporated by: | ||||
| VUFIND-134 | Finish implementation of Search Object |
|
|
|
In doing some testing on this I've found that there is a section in Search/home.php that needs to be commented out, Specifically lines 468 to 477:
// Process Advanced Search
if (is_array($_GET['lookfor'])) {
for ($i=0; $i<count($_GET['lookfor']); $i++) {
if ($_GET['lookfor'][$i] != '') {
$search[] = array('field' => $_GET['type'][$i],
'lookfor' => $_GET['lookfor'][$i],
'bool' => $_GET['bool'][$i-1]);
}
}
}
In debugging this I've found that this section of code ends up duplicating the search parameters in the search[] array.
Note 1: This works if you use only a couple of terms. After that you hit the problem as defined in
VUFIND-5"Long or complex searches break due to URL length limitation"Note 2: While you can limit the result set by selecting facets, when you try to remove an already selected facet the search fails.
VUFIND-5"Long or complex searches break due to URL length limitation" Note 2: While you can limit the result set by selecting facets, when you try to remove an already selected facet the search fails.