Exact field search
I have a search with one field that searches a book catalog. I am able to search by book title and author, but I am having trouble when I try to search for a barcode. The barcodes are stored as values such as ABC 123. When I try to search ABC 123 however I am getting books that have the ABC barcode but not the exact ABC 123. I do not get correct results even when I wrap the search term in quotes ("ABC 123"). This is what my search tag looks like:
{exp:low_search:form collection="ll_catalog" exact="=keywords" query="{segment_3}"}
Keywords is the name of the input field that I am using in the search.
Any idea why I am not getting the correct results?
Replies
Low 1 Apr 2016 08:21
Can you make sure you're on the latest version (v5.0.3 for EE3, v4.4.3 for EE2), as the latest bugfix has to do with numeric search terms.
Furthermore, the exact="" parameter only applies to the Field Search filter (i.e. search:field="" parameters). If you need the keywords to be exact, you either need to use double quotes or use keywords:mode="exact".
ccomer 1 Apr 2016 13:52
Upgrading to 4.4.3 worked, thanks Low.