site filter does not limit search
Bug #874449 reported by
Liam Whalen
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Evergreen |
Confirmed
|
Low
|
Unassigned |
Bug Description
Evergreen 2.0.8
OpenSRF 2.0.1
PostgreSQL 9.0.4
Ubuntu 10.04
When I use the site() filter option in a search string it does not filter my searches by org unit.
For instance,
wikinomics site(ESS-
returns two hits, but the first one is only located in Quebec and should not be returned.
Using the org unit ID results in the same behaviour
wikinomics site(101)
tags: | added: bitesize |
Changed in evergreen: | |
status: | New → Confirmed |
importance: | Undecided → Low |
tags: | added: search |
To post a comment you must log in.
It looks like Search.pm might be the place to start for this. Particularly:
my $site; aou_tree} ->()->id) and not $query =~ /site\(\S+\)/) { get_aou} ->($org) ->shortname;
my $org = $ctx->{search_ou};
if (defined($org) and $org ne '' and ($org ne $ctx->{
$site = $ctx->{
$query .= " site($site)";
}
For what it's worth, I actually can't make this work either. Seems this may be completely busted. Shame, because its a nice shortcut!