Hello,
I have a search form with two fields, one is used to enter the search
term (to search the name, notes and tags), the other one to enter the
city name.
Snippet of configuration:
indexes :name, notes, tag_list
indexes [city.name, city.name_de, city.name_es, city.name_fr,
city.name_it, city.name_en], :as => :city_name
set_property :field_weights => {'name' => 10, 'tag_list' => 5, 'notes'
=> 3}
I cannot use the search method without any conditions for the what
field, because it searches the city names as well. I could group the
name, notes and tag_list in one index (just like the city names), but
then I would lose the option to define field weights which is
important for good results.
What I would need is an option to ignore the city_name index so that a
user doesn't find records from the city "Paris" when entering "Paris"
in the what field.
Any suggestions on this?
Thanks,
Sascha
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Thinking Sphinx" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/thinking-sphinx?hl=en
-~----------~----~----~----~------~----~------~--~---