Skip to content

Commit

Permalink
Force edismax handler for quotations and bib searches in
Browse files Browse the repository at this point in the history
addition to the already-fixed orth search
  • Loading branch information
billdueber committed Oct 8, 2024
1 parent 9357edd commit a9950af
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/controllers/bibliography_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ class BibliographyController < ApplicationController
config.add_search_field("bib_keyword", label: "Entire entry") do |field|
field.qt = "/bibsearch"
field.solr_local_parameters = {
type: "edismax",
qf: "$bib_everything_qf",
pf: "$bib_everything_pf"
}
Expand All @@ -61,13 +62,15 @@ class BibliographyController < ApplicationController
config.add_search_field("bib_author_title", label: "Author/Title") do |field|
field.qt = "/bibsearch"
field.solr_local_parameters = {
type: "edismax",
qf: "$bib_author_title_qf",
pf: "$bib_author_title_pf"
}
end
config.add_search_field("bib_external_references", label: "External References") do |field|
field.qt = "/bibsearch"
field.solr_local_parameters = {
type: "edismax",
qf: "$bib_external_references_qf",
pf: "$bib_external_references_pf"
}
Expand All @@ -76,6 +79,7 @@ class BibliographyController < ApplicationController
config.add_search_field("bib_lalme", label: "LALME/LAEME") do |field|
field.qt = "/bibsearch"
field.solr_local_parameters = {
type: "edismax",
qf: "$bib_lalme_qf",
pf: "$bib_lalme_pf"
}
Expand All @@ -84,6 +88,7 @@ class BibliographyController < ApplicationController
config.add_search_field("bib_manuscript", label: "Manuscripts") do |field|
field.qt = "/bibsearch"
field.solr_local_parameters = {
type: "edismax",
qf: "$bib_manuscript_qf",
pf: "$bib_manuscript_pf"
}
Expand Down
2 changes: 2 additions & 0 deletions app/controllers/quotes_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ class QuotesController < ApplicationController
config.add_search_field("quote_everything", label: "Quotation including citation") do |field|
field.qt = "/quotesearch"
field.solr_local_parameters = {
type: "edismax",
qf: "$quote_everything_qf",
pf: "$quote_everything_pf"
}
Expand All @@ -52,6 +53,7 @@ class QuotesController < ApplicationController
config.add_search_field("quote_quote", label: "Quotation text only") do |field|
field.qt = "/quotesearch"
field.solr_local_parameters = {
type: "edismax",
qf: "$quote_quote_qf",
pf: "$quote_quote_pf"
}
Expand Down

0 comments on commit a9950af

Please sign in to comment.