I'm not getting the expected results with low search range. Here is my search form

{exp:low_search:form collection="press_releases" required="keywords" result_page="/communications/result"}
<label for="keywords">Keywords</label>
<input type="text" name="keywords" id="keywords" />
<input name="range-from:entry_date" value="2014-01-01">
<input name="range-to:entry_date" value="2014-01-24">
<button type="submit">Search</button>

Search Result Code:

{exp:low_search:results status="not closed" query="{segment_3}" disable="member_data|category_fields"}
{if count ==  1}<ol>{/if}
<li><a href="{path='communications/view'}/{url_title}">{title}</a></li>
{if count == total_results}</ol>{/if}
{if no_results}No search results{/if}

How i can handle this with low search using range?

Thanks in advance.


Currently, the Range filter only targets custom channel fields. If you want to target the entry_date, you can use the native start_on and stop_before parameters. If you do, make sure the values are formatted as stated in the EE docs, so something like:

<input name="start_on" value="2014-01-01 00:00">
<input name="stop_before" value="2014-01-24 23:59">

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.