silverstripe-cms icon indicating copy to clipboard operation
silverstripe-cms copied to clipboard

SiteTree Search does not display expected results on multiple searches using filters.

Open mithungc opened this issue 6 years ago • 3 comments

Scenario -

  1. Created a 'Redirector-1' and saved to 'Draft'.
  2. Created another 'Redirector-2' and 'Published' it.
  3. Utilized the 'SiteTree Search' to show 'Redirector - Page Types'. Both 'Redirector 1 & 2' are successfully shown.
  4. Attempted another 'Search' to filter only 'Published Pages'.
  5. Wrong Search Results are displayed.

Expected - Only 'Redirector-2' should be displayed. Note - Pics attached for reference

Version Tested - 4.3 Demo Version

mithungc avatar May 01 '19 04:05 mithungc

Initial Search Second Search

mithungc avatar May 01 '19 04:05 mithungc

Seems like the filter is using OR instead of AND condition.

michalkleiner avatar May 06 '19 03:05 michalkleiner

I can confirm that this is still an issue in 4.4 and on that it can also be seen on the demo site: https://demo.silverstripe.org/admin/pages/?q%5BFilterClass%5D=SilverStripe%5CCMS%5CControllers%5CCMSSiteTreeFilter_PublishedPages&q%5BClassName%5D=SilverStripe%5CErrorPage%5CErrorPage End-users expect this to be an AND AND search .... e.g. SHow me Product Pages that are Published .... rather than ... show me Product Pages or Published Pages.

sunnysideup avatar Aug 07 '19 09:08 sunnysideup

Just found this issue by accident, I think this was solved long ago by #2540, should be closed.

adiwidjaja avatar Apr 17 '23 12:04 adiwidjaja