O'Reilly logo

Sphinx Search by Abbas Ali

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Time for action - adding ranged filters

  1. Modify /path/to/webroot/properties/views/search.thtml as highlighted in the following code:
    <!-- File: /path/to/webroot/properties/views/search.thtml -->
    <input type="radio"
    name="transaction_type" value="2" /> Rent
    &nbsp;&nbsp;&nbsp;
    <input type="radio"
    name="transaction_type" value="3" /> PG
    </div>
    <div class="input"> <label>Budget ($): </label> <input type="text" name="min_price" size="5" /> to <input type="text" name="max_price" size="5" /> </div> <div class="input"> <label>Min Bedrooms: </label> <input type="text" name="bedrooms" size="1" /> </div> <div class="input"> <label>Min Bathrooms: </label> <input type="text" name="bathrooms" size="1" /> </div> <div class="input"> <label>Min Area: </label> <input ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required