Hi all,

Simple scenario but I dont think a simple solution for a real estate
website.

I have an example schema field
<field name="bed" type="float" indexed="true" stored="true" />
values in "bed" are numbers 0-20.

In my website search box (simple html text input) I have a scenario where in
the keyword input box, people may type in a natural search similar to they
do with google.

"3 bedroom house"

How can I train (sorry dont have a better word) that when solr receives
search terms like
3 bed
3 beds
3 bedrooms
3bed
etc
that it looks in the field "bed" for the number 3 when performing a search?

And if that is possible, how do I then create additional options for fields
so it can do searches across multiple fields in a value specific manner.

Eg search term "3 bedroom 2 bathroom house"

Schema
        <field name="bed" type="float" indexed="true" stored="true" />  
        <field name="bath" type="float" indexed="true" stored="true"/>

Will "filter" this search so that it takes the number 3 and looks in the
field "bed" for matches, and then takes the number 2, and looks in the field
"bath" for matches in its search results?

Thanks




--
View this message in context: 
http://lucene.472066.n3.nabble.com/Solr4-how-to-make-it-do-this-tp4008574.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to