Items in trash and drafts being indexed

  • mcl7
    Participant
    # 1 year, 7 months ago

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

    wpsolr
    Keymaster
    # 1 year, 7 months ago

    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
    # 1 year, 7 months ago

    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
    # 1 year, 7 months ago

    (Screenshot missing)

    mcl7
    Participant
    # 1 year, 7 months ago

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

    mcl7
    Participant
    # 1 year, 7 months ago

    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
    # 1 year, 7 months ago

    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
    # 1 year, 7 months ago

    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.