Closed (fixed)
Project:
Custom Search
Version:
7.x-1.16
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
29 Oct 2014 at 00:12 UTC
Updated:
24 Nov 2014 at 18:14 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
omaster commentedComment #2
jdanthinne commentedDo you mean you'd have to modify custom_search.module itself? Perhaps the custom_search_submit() function, which does all the processing of the inputs before making the search itself?
What I can do is a hook_custom_search_processing perhaps? Could that help you?
Comment #3
omaster commentedThat is absolutely correct. a hook_custom_search_processing would be absolutely perfect. Just a way to send relevant information to be processed would do the job brilliantly. :).
Let me know if I can help in any way.
Comment #4
jdanthinne commentedHere's a patch to add support for a
hook_custom_search_processing(&$path,&$keys,$form,$form_state,$delta).But I'm not sure where you want to hook into, so be free to modify this patch as well.
Comment #5
omaster commentedThanks for the prompt work. I will definitely play around with this during the later half of this week and get back to you with any possible improvements.
Comment #6
omaster commentedI will be submitting a patch later today that will allow Apache Solr search to work with this. In the future I will hopefully also get this working with all search methods you have in the Custom Search. It will allow any user to contribute extra modules to extend Custom Search with other items. They will just need to configure their own modules with the right hooks to connect with Custom Search.
Comment #7
jdanthinne commentedGreat! I was thinking about that for some time, but the upgrade to D8 is already taking me all the free time I can allow for Drupal...
Comment #8
omaster commentedPlease find attached the patch I have made now for this. I have made the patch on 7.x-1.x. I need to check it still works as I noticed you changed some things but that will probably be my module that will need to change.
Comment #9
omaster commentedSorry fixed patch file. Other was missing something
Comment #10
omaster commentedI am not sure what the fq in apache solr was about but it doesn't work when that exists. So Here is my final patch Maybe you can explain that?
Comment #11
omaster commentedI have been doing a lot of testing today and found some errors in my patch file I have done a new patch now.
As a side not I am also working on a Date Filter Module now that will also hook into this stuff.
Comment #12
jdanthinne commentedI'll wait a few more days so you'll be sure everything is ok with your patch… Come back to me to confirm that and I'll commit.
Comment #13
omaster commentedI think this is all good to go now.
The module is available on my sandbox now https://www.drupal.org/sandbox/omaster/2370025
Not quite ready for all fields but it is getting there.
Comment #14
jdanthinne commentedOk, pushed to dev…