All Low add-ons are now owned by EEHarbor. Read the blog post.

Support archive

Entries with custom status not showing up in search results

Abhijeet Bhushan 6 Jan 2016 06:12 question, complete

I have created status "publish". Now I am using low search and when I try {exp:low_search:results query="{segment_3}" limit="10" status="open"} or {exp:low_search:results query="{segment_3}" limit="10"} then it shows me result if staus is open but I need to show results which status is "publish" so I have tried {exp:low_search:results query="{segment_3}" limit="10" status="publish"} and {exp:low_search:results query="{segment_3}" limit="10" status="open|publish"} but result is not showing the return result which is associated with status publish.

Also I have tried with
{exp:low_search:results query="{segment_3}" limit="10" status="not closed"}
but still it is showing results which have status open only:(

I am using version 4.4.1

Note: This conversation was created from a reply on: Low Search with Custom Channel Statues - Zoo Visitor.

Replies

  1. Low 6 Jan 2016 08:31

    There might be other parameters preventing those entries from showing up.

    Can you turn on template debugging and copy/paste the lines that mention Low Search here?

  2. Abhijeet Bhushan 6 Jan 2016 09:18

    (0.101038 / 12.74MB) Tag: {exp:low_search:results query="eyJrZXl3b3JkcyI6ImF3Y2MifQ" limit="10" status="not closed"}
    (0.101179 / 12.74MB) Closing Tag Found
    (0.101375 / 12.74MB) Module Tag: Low_search/results
    (0.171195 / 13.90MB) Calling Class/Method: Low_search/results
    (0.172464 / 13.91MB) -> Class Called: Low_search
    (0.211152 / 14.64MB) -> Method Called: results
    (0.211231 / 14.64MB) Low Search: Prepping if low_search_no_results conditional
    (0.270681 / 15.57MB) Low Search: Applying Low_search_filter_keywords
    (0.385491 / 20.34MB) Calling Extension Class/Method: Low_search_ext/channel_entries_query_result

    I have enabled template debugging and getting this which is mentioning low search.

    Below is my template tag: -

    {exp:low_search:results query="{segment_3}" limit="10" status="not closed"}
    {if count == 1}
    Keyword - {low_search_keywords}.[{absolute_results}]

    {/if}
    Name: {title}
    {if "{channel_name}" == "news"}
    {url_title}

    {if:elseif "{channel_name}" == "products"}
    {exp:channel:entries channel="products" entry_id = "{entry_id}" disable="custom_fields|member_data"}
    {categories show_group="4"}
    {if "{parent_id}" == "0"}
    {category_name}


    {/if}
    {/categories}
    {/exp:channel:entries}
    {if:else}
    {title}

    {/if}
    Channel Name:{channel_name}
    {paginate}
    {current_page}/{total_pages} | {pagination_links}
    {/paginate}
    {if low_search_no_results}
    No results for "{low_search_keywords}".

    {/if}
    {/exp:low_search:results}

  3. Low 6 Jan 2016 09:32

    There's no reason why it shouldn't display those entries.

    Why are you nesting a channel:entries tag inside the low_search:results tag? There should be no need to do that and it might lead to unexpected output.

    For test purposes, you could clear out the entire low_search:results tag and just add {title} so it displays just the title of the entry.

    You can also change the low_search:results tag to a channel:entries tag and see if the entries show up then.

  4. Abhijeet Bhushan 6 Jan 2016 10:04

    {exp:low_search:results query="{segment_3}" limit="10" status="not closed"}
    {total_results}
    {title}

    {/exp:low_search:results}

    I have tried this one as well. But still getting the same result.
    Do I need to do anything from low search form tag?

    and how can I use channel entries with this tag instead of low_search:results.

    Also I would like to mention that I am searching keyword from multiple channels. And status publish is created only for one channel.

    http://core94.com/site/search-test

    Thanks

  5. Low 6 Jan 2016 10:05

    I'll need to take a look myself. Please send SuperAdmin login credentials to hi at gotolow dot com if you can.

  6. Abhijeet Bhushan 6 Jan 2016 10:22

    Actually when I changed the weight 3 to 1 from collection then it started working.
    I am checking the same for other collection and if I need any assist from your end then I'll get back to you.

    Thanks Low for your great support and I appreciate your quick response on my queries.

    Thanks

  7. Abhijeet Bhushan 6 Jan 2016 10:31

    Don't know how but it started showing:(
    In first impression I thought that I have changed weight and that is why it is started showing. But in my cross check I have changed weight again to 3 and still it is working fine.

    i am working on the same for other searching and let you know if I find any issue.
    I have used low search on multiple sites but only today I faced that kind of issues.

    Thanks for your support.

  8. Low 6 Jan 2016 13:01

    It could be that there were only a few entries in the index, which can make some entries not appear for certain keywords, as some keywords will then be considered "common" and will not be searchable via MySQL's fulltext functions. This usually straightens itself out if you add more entries, or tweak the weighting.

  9. Vaughn D. Taylor 27 Aug 2016 14:02

    I'm having an issue with a custom status in low_search:results as well, but my query is more simple than the one above. I posted my question on ExpressionEngine Answers: http://expressionengine.stackexchange...

    Should I also post it here?

    Thanks Low

    Low 27 Aug 2016 14:13

    Should probably be it's own thread here if you're expecting direct support from me. EE Answers is community based, monitored by me on a less regular basis than GetSat.