Items in trash and drafts being indexed

  • mcl7
    Participant
    3 years, 9 months ago #22753

    How do I prevent items from the trash and drafts from being indexed and ending up in the search?

    wpsolr
    Keymaster
    3 years, 9 months ago #22760

    They should not be indexed of course.
    If you trash or draft a product, you should see the WPSOLR message “Product removed from the index”.

    mcl7
    Participant
    3 years, 9 months ago #22765

    here is a screenshot from algolia:
    https://file.io/Iu1cELo8c4ZZ
    These pages are showing up in the auto-suggest but not in the actual search results (after you click enter). I also do not see them in the category or facets.

    wpsolr
    Keymaster
    3 years, 9 months ago #22770

    (Screenshot missing)

    mcl7
    Participant
    3 years, 9 months ago #22772

    Ok, sorry about that. Here you go: https://gofile.io/d/HEWdcO

    mcl7
    Participant
    3 years, 9 months ago #22773

    This is the screenshot showing the drafts and trash ending up in Algolia:

    https://gofile.io/d/Pp8Gpa

    (disregard previous file, its for the other ticket)

    wpsolr
    Keymaster
    3 years, 9 months ago #22776

    All status are indexed if you activate the “Index all status. To replace search in admin too. Only published is shown in front search” in screen 2.2

    But suggestions and search only return published post types on front-end.

    mcl7
    Participant
    3 years, 9 months ago #22782

    Got it, makes sense. I will re-index and post back.

Viewing 8 posts - 1 through 8 (of 8 total)

You must be logged in to reply to this topic.