cms icon indicating copy to clipboard operation
cms copied to clipboard

Search does not return entry with the exact same title

Open j3ll3yfi5h opened this issue 4 years ago • 1 comments

Bug description

Title of my entry: Informatiker/in EFZ

If I search for exactly this term (for example with the help of a datalist in my frontend), it doesn't get returned.

search-Parameter: ?q=Informatiker%2Fin+EFZ

search-JSON: {"title":"Informatiker\/in EFZ"}

How to reproduce

If I change: https://github.com/statamic/cms/blob/d49cbf9cf9fc67d4cc6bea77a333e6a682bddafc/src/Search/Comb/Comb.php#L369

to: return $raw_query;

It works as expected.

(I'm by the way not sure, if this is bad for security...)

Logs

No response

Versions

Statamic 3.2.21 Pro Laravel 8.70.2 PHP 8.0.12

Installation

Fresh statamic/statamic site via CLI

Additional details

No response

j3ll3yfi5h avatar Nov 16 '21 13:11 j3ll3yfi5h

Maybe related to https://github.com/statamic/cms/issues/4405

j3ll3yfi5h avatar Feb 11 '22 10:02 j3ll3yfi5h