Multiple Channels with Multiple Channel Field result
I am not sure if i would be able to explain this :
I have two channels
Actors with a channel field : actor_area & actor_city
Directors witha channel field : director_area & director_city
How can i implement a single form to search entries in both channels matching the area or city keyword used.
So my results page should show
Denny B. (Director) - Sydney
Jammy Fox - (Actor) - Sydney
P. Sam (Director) - Sydney
Jr. Roberts - (Actor) - Sydney
Sr. Solomon - (Actor) - Sydney
Patty P - (Actor) - Sydney
********************************* I hope i was able to explain ....
I am not able to configure my search form and search results page.
Also i have the same search form on results page.
Please guide.
Replies
Low 7 Nov 2014 18:20
I would create two collections where you add weight to the Area and City fields, and use the Keywords filter to search through those collections. That should give you results from both channels.
If you need help with the implementation, check out my Implementation Aid service.
sajwal 8 Nov 2014 07:15
Thanks for the quick reply low!!!
Okay its a quick question again...i think i am confused in search form and filter form then.....
1. Will the filter form perform a new search query result? or is it (filtering)searching in the same results that has come out of the initial search ?
2. I have other fields like latitude longitude...rating score....famous awards....etc...
should i use them to filter form or use them in the search form?
Low 8 Nov 2014 10:12
There is no difference between searching and filtering, at least, not in Low Search. You can filter by keywords, category, distance, and more, either using form fields or hard-coded parameters.
More about filtering/searching works here: https://getsatisfaction.com/low/topic...
sajwal 8 Nov 2014 19:26
Thanks for the support low...appreciate it.
I think i could not explain my situation...i dont know if its possible even by creating a custom hook extension...
Is it possible to search two channels and filter results using two different custom fields (without using keywords input - my form has different input for area, city, awards, ranking, lat, lng etc...)
so in short i am trying to use search:field="" parameter i guess for two different channel fields here
search:actor_city="Sydney" && search:director_city="Sydney"
************After all readings i am not able to get this working
i have tried using search:actor_city|directory_city="Sydney" (no go..)
Can i achieve this by any default method or making my own custom extension...
if yes please guide me to the correct hook and if you can lighten a spark on it...
Thanks ....
Low 9 Nov 2014 09:44
That syntax isn't possible at the moment. You'd have to create something custom. For example, use the low_search_pre_search hook, read the parameters, perform your query, set the entry_id parameter accordingly, and return the parameters again. That should limit the search results based on your custom query.