Hi All We need to be able to perform a search based on two search terms (from the user) against specific fields and a location. For example assume our index (for a collection of books) has fields as title, description, authors (multi-valued), categories(multi-valued), location (ofcourse lng and lats). Every field is indexed.
I want to give the user the option of having two search options (one box for title, and one for category - to find a more relevant result) along with a location option. The user would then want to search for a book with a certain title belonging to a set of categories in a given location (all of these should be a AND). I want to show results that would ONLY match the terms for the corresponding fields. I want to be able to use the dismax parser to search on both terms (assigning slops and tie breaks). I take it the 'fq' is a candidate for this,but can I add dismax capabilities to fq as well? Also my query would be a spatial search as well. So the spatial tier would be included in the query. What would be the best way to implement my query to match terms to specific fields along with spatial capabilities? Appreciate your inputs. Thanks!! Cheers -- Imran