Bug 157878 - Do an exact match of items in the autofilter
Summary: Do an exact match of items in the autofilter
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
7.6.2.1 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisectRequest
Depends on:
Blocks: AutoFilter
  Show dependency treegraph
 
Reported: 2023-10-21 12:57 UTC by Thierry Munoz
Modified: 2023-11-09 12:05 UTC (History)
7 users (show)

See Also:
Crash report or crash signature:


Attachments
Sheet with autofilter and entries "CP" and "Mi-CP" on the column B (16.26 KB, application/vnd.oasis.opendocument.spreadsheet)
2023-10-21 12:57 UTC, Thierry Munoz
Details
Pictures of the bug (149.20 KB, image/png)
2023-10-23 11:07 UTC, Thierry Munoz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thierry Munoz 2023-10-21 12:57:33 UTC
Created attachment 190365 [details]
Sheet with autofilter and entries "CP" and "Mi-CP" on the column B

Hi,

When I use the autofilter with the words "CP" and "Mi-CP" listed, and I choose "CP", the result returns all the entries with CP inside so I have "CP" and "Mi-CP" entries.
I should obtain only "CP" entries not "Mi-CP" entries.

When I choose "Mi-CP", only the "Mi-CP" entries are returned : no problem here.

See the attachment.

Regards,

ThierryM
Comment 1 Thierry Munoz 2023-10-21 14:46:05 UTC
The problem exist too with "CP" and "MiCP". It's not a dash beetween words problem.
Comment 2 m_a_riosv 2023-10-23 09:32:27 UTC
LibreOffice searches on the entire cell, no matter the position.

For more detailed searches, there is:
Filter by condition
Standard filter
In condition 'Begins with'
Comment 3 Thierry Munoz 2023-10-23 11:07:32 UTC
Created attachment 190387 [details]
Pictures of the bug
Comment 4 Thierry Munoz 2023-10-23 11:08:09 UTC
It's not the research the problem. It's when I select only the choice "CP" (see the picture attached), the "Mi-CP" entries are displayed therefore I didn't select the "Mi-CP" choise.
Comment 5 m_a_riosv 2023-10-24 08:00:54 UTC
Forgive me, now I understand what you are talking about.

The behavior is controlled by the option:
Menu/Tools/Options/LibreOffice Calc/Calculate – Search criteria = and <> must apply to whole cells.

Change it and the filter works as you expect.
Comment 6 m_a_riosv 2023-10-24 08:07:32 UTC
Rethinking about, seems like a bug, that the selection in the filter it's confuse and unclear, perhaps it should always apply to the whole cell in the filter. Or in some way lets us know something about.

Asking for UX team point of view.
Comment 7 Thierry Munoz 2023-10-24 13:58:15 UTC
Thanks a lot m.a.riosv !
I didn't know this option that resolve my problem.

But, yes this filter mode is not clear. Maybe with an option in the context menu of the autofilter to choose the filter mode ?

Regards.
Comment 8 Heiko Tietze 2023-10-26 08:26:36 UTC
(In reply to m.a.riosv from comment #6)
> (the whole cell option) should always apply
Eike, are you aware of a reason why it has been disabled?

I'm a bit concerned of users who expect the opposite.
Comment 9 Eike Rathke 2023-10-27 11:38:28 UTC
(In reply to Heiko Tietze from comment #8)
> (In reply to m.a.riosv from comment #6)
> > (the whole cell option) should always apply
> Eike, are you aware of a reason why it has been disabled?
> I'm a bit concerned of users who expect the opposite.
I think AutoFilter should be independent of that option (which applies to comparison operators), selecting an entry it's unexpected it operates as a "contains" filter, but I don't know why it is coupled nor if and when that was changed or not nor if there was a reason to do so or which. To find out maybe request a bibisecting.
Comment 10 Heiko Tietze 2023-11-09 11:02:44 UTC
We discussed the topic in the design meeting.

The solution is to always filter the entire cell aka exact match. If users expect fuzziness it is possible to search in the autofilter popup for "CP" which preselects all *CP* items.

I could imagine this to be an easyhack.