No Search Results
i am using search form for keyword search. my code is returning all data if i use symbols but no results for alphabets. Can you please help me with this.
My search form
{exp:low_search:form
query={segment_3}
result_page="products/search"
required="keywords"
form_id="search"
secure="no"}
{/exp:low_search:form}
result template
{exp:low_search:results
query="{segment_3}"
status="not closed"
dynamic="no"
collection="international_product"
disable="categories|member_data"
search_mode="all"
dynamic="no"
}
{if no_results}
Sorry, your query did not return any results.
Check your spelling or try a different search term.p[]p
{/if}
{if count == 1}
{if low_search_keywords}Searched for {low_search_keywords}.{/if}
Total results: {absolute_results}.
{/if}
{title}
{entry_id} | {entry_date format="%Y-%m-%d"} | {channel}
{if low_search_collection_id}
Found in {low_search_collection_label} with a score of {low_search_score}.
{/if}
{low_search_excerpt}
{if page_url}
{page_url}
{if:else}
{comment_url_title_auto_path}
{/if}
{paginate}
Page {current_page} of {total_pages} pages {pagination_links}
{/paginate}
{/exp:low_search:results}
can you pls tell me what i am doing wrong
Replies
Low 26 Jun 2014 13:55
I'm going to presume you mean that keywords like "!*$#)" return all results, and keywords like "hello world" return none.
Punctuation is stripped out of keywords and the search index, so that is correct. If actual keywords are returning no results, then check if you have created the collection correctly, and if the fields in the collection have a weight of >= 1.
Also, if you're sharing large amounts of code like this, try using http://pastie.org/ or http://pastebin.com/ which won't mess up your code.