So I have tried making my own module that hooks with the search module....failed. Then I tried to use views to handle searching....way too inefficient. I also tried to create a new module based on search's module, and it became a mess really fast.
What I am looking for is a way to handle the multi-level searching needed for reserving a hotel. I would like to have fields like, check in date, check out date, max price, location, smoking/nonsmoking....ect.
With out of the box Drupal, searching is pretty much one field. I would like to base search results on content in general, we well as CCK fields that are in the content type. Is this even possible out of the box with any modules? I am more than willing to develop and share such a module if it doesn't exist, however a little guidance would be great, to insure the flexibility with different types.
Has this been done before?
Comments
Solr?
Does this sound like a job for a custom Solr solution? I would liek to keep it more basic than that for now, but I would like to begin development soon.
Still needing advice
So, I have opted to build out a custom search module. I have specific fields I would like to post to my module that will handle searching not only built in title and body fields, but additionally CCK fields. Would it be best to just do manual SQL queries on the db rather than using the search API? It seems that multiple calls to the API will consume resources that are really just not neccessary?
Is it possible to tell the search API look for 'this' in the title, 'this' in the body content, and 'this' in a CCK field?
I cannot comment on the best
I cannot comment on the best method (because I don't know it!), but in the past, I have created my own search module that does direct queries on the database.
Contact me to contract me for D7 -> D10/11 migrations.
Thanks for the response Jay.
Thanks for the response Jay. I am considering it, however I am a bit nervous about scalability. Does Drupal's search handle caching or fancy indexing that would give drastic perks over direct queries?