Hi Solr users,

This is my first post on this list, so nice to meet you.

I need to do something with solr, but I have no idea how to achieve this. Let 
me describe my problem.

I'm building an address search engine. In my Solr schema, I've got many fields 
like «country», «state», «town», «street».

I want my users to search an address by location, so I've set up a catchall 
field containing a copy of all the other fields. This is my default search 
field.

I want to propose a dynamic facet search : if a user searches for the term 
«USA», the used facet.field will be «state», but if he searches for «Chicago», 
facet.field will be «street». If a user is searching for an address in Chicago, 
it would be stupid to propose a facet search on the «country» field, would'nt 
it?

However, how can I know which field is matched ? If the user search «France», 
how can I know if this is a country or a town ?

Is anybody has an idea?

Best regards,
Thibault.

Reply via email to