Problem with query params
- StefanParticipant2 months, 2 weeks ago #45394
Hi,
My search page is located at the url /archiv
in my search.php wordpress template, i add the SOLR search like this:echo do_shortcode( ‘[solr_search_shortcode]‘ );
This does correctly show a search text field and the defined facets.
If i enter ‘test’ in the search text field and hit search, i get redirected to /archiv/?search=test
and all is as expected. But then, if i choose a value in one of the facets, i get redirected to
/archiv/?wpsolr_q=test&wpsolr_fq%5B0%5D=article_publication_year_str%3A2012
and then the search string ‘test’ is ignored.Any idea what is causing this and how to solve it?
StefanParticipant2 months, 2 weeks ago #45442Sorry, the documentation and forum entries are really confusing me.
Can you point me to some current documentation on how to style the search page and search results?
Are all the twig templates now also deprecated?
And what about the search-page “search-wpsolr”? That also uses a shortcode, is that also deprecated?If I use this code in search.php, the problem with the querystring is still not solved:
get_search_form();
if ( is_active_sidebar( ‘custom-widget-area’ ) ) {
dynamic_sidebar( ‘custom-widget-area’ );
}wpsolrKeymaster2 months, 2 weeks ago #45443The purpose of WPSOlr is to replace archives’ SQL queries with an external search engine queries, more accurate and scalable.
By selecting your theme’s templates on WPSolr screen 2.1, you keep your theme archive templates while benefiting from better search results:
Select the archive SQL queries that need to be replaced:
You must be logged in to reply to this topic.