Book Image

Sphinx Search Beginner's Guide

By : Abbas Ali
Book Image

Sphinx Search Beginner's Guide

By: Abbas Ali

Overview of this book

Table of Contents (15 chapters)
Sphinx Search
Credits
About the Author
Acknowledgement
About the Reviewers
www.PacktPub.com
Preface

Time for action - adding ranged filters


  1. 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 type="text" name="area" size="4" />
    </div>
    <div class="input">
    <label...