-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implemented the EngineeringSearch experimental SearchBuilder for
supporting a different Solr RequestHandler Co-authored-by: Anna Headley <[email protected]> Co-authored-by: Carolyn Cole <[email protected]> Co-authored-by: Eliot Jordan <[email protected]> Co-authored-by: James R. Griffin III <[email protected]> Co-authored-by: Trey Pendragon <[email protected]>
- Loading branch information
1 parent
2fe4921
commit d9c8466
Showing
5 changed files
with
364 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# frozen_string_literal: true | ||
|
||
# This is a demonstration search builder, not intended for prodcution use. | ||
class EngineeringSearchBuilder < SearchBuilder | ||
self.default_processor_chain += [:switch_request_handler] | ||
|
||
def switch_request_handler(solr_parameters) | ||
solr_parameters[:qt] = "engineering_search" | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters