SOLR search implementation

Posted in: Newsmag
Post count: 10

hello, can you give me some guide how to replace theme search tool with WPSOLR search box?
http://epodravina.hr
http://epodravina.hr/search-wpsolr/

Post count: 6535

Hi

The code which generate search box icon is located in header-menu.php: http://screencast.com/t/eWrBy67Hi You can try to replace it with your custom code but I am not sue if it will work fine as we didn’t test it and we’re not aware of its functionality.

Thanks!

Post count: 10

Managed to add it but not completly as I planed.
Is it possible to do the search by disabling somehow ajax and transfer search string like it is now. So we speed up and skip that way quering local database?

<div class=”header-search-wrap”>
<div class=”dropdown header-search”>
<div class=”td-drop-down-search” aria-labelledby=”td-header-search-button”>
<form method=”get” class=”td-search-form” action=”<?php echo esc_url(home_url( ‘search-wpsolr/’ )); ?>”>
<div role=”search” class=”td-head-form-search-wrap”>
<input class=”needsclick” id=”td-header-search” type=”text” value=”<?php echo get_search_query(); ?>” name=”search” autocomplete=”off” /><input class=”wpb_button wpb_btn-inverse btn” type=”submit” id=”td-header-search-top” value=”<?php _etd(‘Search’)?>” />
</div>
</form>
<div id=”td-aj-search”></div>
</div>
</div>
</div>

Post count: 6535

Hi

The code which makes the search is lactated in tagdiv_theme/is file: http://screencast.com/t/o4fGSPwWGRR You can try to remove it or change the current implementation. This is a very complex task which involve many customizations and tests in order to be achieved. We can’t offer customization services at the moment so if you still need guidance on this or you’re not aware of the steps you need to take in this regard please consider hiring a developer or a freelancer to do this for you.

Thanks!

Viewing 4 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic.