If I go to

/search/apachesolr_panels

an then I search for "Foo", I get to

/search/apachesolr_panels/Foo

If I then _replace_ "Foo" in the search box by "Bar" and search again, I get to

/search/apachesolr_panels/Foo/Bar

If I would just have left "Foo" in place I'd end up at

/search/apachesolr_panels/Foo/Foo

Also, the facets links on the first result page go to

/search/apachesolr_panels/Foo/Foo?filters=type%3Acontent_profile

which is clearly wrong.

CommentFileSizeAuthor
#3 apachesolr_panels-example_page.txt6.15 KBximo

Comments

erik seifert’s picture

Same to me.

Panels 3.9
C-Tools 1.8
ApacheSolr Panels 6.x-1.0-alpha-1

erik seifert’s picture

Quick fix for Search Form ( but not for filters ).

Set Path in Search Form

ximo’s picture

Assigned: Unassigned » ximo
StatusFileSize
new6.15 KB

You're likely using the "search-apachesolr_panels" page. That's a page automatically created by the Search API which gives all sorts of bugs, it's not the one you should be using. Sorry for this confusion, I blame myself for the lack of documentation.

What you want to do is create a new Page Manager page with a path like "find/!keywords". Under Arguments, assign the "%keywords" argument as a String (name it "Keywords"). Then under Content, add the three panes found in the "Apache Solr Search" category, plus any of the Apache Solr blocks found in the "Miscellaneous" category. The "Apache Solr search results" pane is where you configure the search, you should have the "Keywords" context selected here.

Attached is an example page of what I described that you can import into Page Manager. That should clear things up!

I apologize for the confusion, will work on documentation. And I'll see if I can work around the Search API to make the "search-apachesolr_panels" page go away.

killes@www.drop.org’s picture

Yep, you are correct, I used the false panel! Thanks!

ximo’s picture

Title: Search term duplicated » Get rid of confusing search-apachesolr_panels page

Glad that solved it :)

Renaming the issue, will work on this later…

dabeast’s picture

Thanks this was very helpful. How would one go about making this the primary landing page from the search box? Sorry if this is a stupid question.

ximo’s picture

Not at all. See #1047630: Provide block for custom search pages. Depending on you using Panels Everywhere or not, that is either ridiculously easy or hard :)

ximo’s picture

Status: Active » Fixed

Made it work without having to be part of the Search API (which was the problem).

FYI, the search block issue is fixed too. There's also improved documentation in the README plus an improved example to import into Page manager.

A beta coming up, stable release should be out before long, as I don't plan to add many more features and it seems very stable.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.