Open awead opened 7 years ago
This is a good question. I have no attachment to it. This query was added by @cam156 (in 1010554cd675f20d66aafaa8439249e4c2d69587), so I'd like to see what she thinks.
FYI, blacklight-advanced-search use to have dismax hardcoded until I made the query parser configurable in https://github.com/projectblacklight/blacklight_advanced_search/commit/5ceff42ab6b242c52ea319373a5e6e4b7c144006
@awead configuration makes sense
@awead Since the question is answered, shall we close this issue, or do you want to hang PRs off it?
@mjgiarlo that's up to you. The question is answered, but no actionable issues have been created. If you think Sufia/Hyrax should not support wildcard searching up-front, then close this.
OK, @awead, good point.
@jcoyne @awead @cam156 any of y'all inclined to work on supporting wildcard searching in Sufia? Might AIC be inclined to contribute this back to Sufia so they don't need to maintain that code in their app?
Descriptive summary
The CatalogSearchBuilder uses
dismax
https://github.com/projecthydra/sufia/blob/master/app/search_builders/sufia/catalog_search_builder.rb#L35
This can prevent wildcard searches which need
edismax
. It also conflicts with the Blacklight advanced search plugin, which uses a CatalogController setting:Which could also be set to edismax.
We could make Sufia's query parser configurable as well? Or is there a reason why dismax is required?