News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Use Sphider as SMF Search

Started by Michael James Swan, September 26, 2014, 05:52:22 PM

Previous topic - Next topic

Michael James Swan

Hello,

I am looking to keep the SMF Search bar, however for it to access the search database of my Sphider Installation.

i.e. If someone searches on my main website, it will query the Sphider Database and provide a result (including the forum as that has been indexed).

So, I would like it to also be: If someone uses the search box on the SMF 2.0.8 forum, then it queries the Sphider Database and provides a result.

I know people have managed to do this to allow Google Custom Search...

This is the search code on my website:


<form action="http://stream.ph/search/search.php" method="get">
<input type="text" value="" name="query" id="query" placeholder="Search..." required="required" name="s" />
                                <input type="submit" value="Search">
                                <input type="hidden" name="search" value="1">
                                </form>


Notice the FORM ACTION part....

Thanks in advance.

Kind Regards,
Michael James Swan

Advertisement: