boston-library / commonwealth-vlr-engine

Commonwealth-VLR-Engine is a Rails engine for creating Blacklight apps that provide access to content from Solr/Fedora, packaging a number of feature-rich enhancements and modifications.
Apache License 2.0
8 stars 2 forks source link

use OR for multi-word OCR searches #115

Open ebenenglish opened 10 months ago

ebenenglish commented 10 months ago

When I am on the book viewer page (image_viewer#book_veiwer) And I click on the full-text search button And I enter a multi-term query (without quotes) in the search box and hit search I should see results for pages that have any of my query terms So that I can easily see what pages my query terms have hits on

Currently, if a user enters a multi-word query, the terms are "AND"ed together, and only pages that have both terms appear as results. This can cause confusion if the user got to a book viewer page after running a multi-term search in the main search box, which causes their main search query terms to be pre-populated in a link that is displayed when the full-text search modal is loaded. If the user clicks on the pre-populated search link, they may not see any results if the terms are on separate pages.