Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using Symphony URL Parameters Full Example? #59

Open
craigerskine opened this issue Sep 20, 2019 · 2 comments
Open

Using Symphony URL Parameters Full Example? #59

craigerskine opened this issue Sep 20, 2019 · 2 comments

Comments

@craigerskine
Copy link

Is there a full example of how to do the "/search/foo+bar/2/" url scheme? I've tried for days to get it to work, but I keep getting a "Invalid search sections" error in my XML. I've edited the config and manually added my section name and tried adding every variant of the param_pool field.

I have a page called "Search" and I have my data source that I want to search against as well as the Index DS attached. I've added a url param called "site-search" to my page.

I've added 'site-search' and tried every variant (site-search | '$site-search' | etc.) to the prefix variable in the config.

I must be doing something terribly wrong.

@animaux
Copy link
Contributor

animaux commented Sep 23, 2019

@craigerskine I have tried a few times to use url-params for the search index extensions but always failed. Not sure if it was for encoding reasons or similar stuff you describe. I always ended up using ugly url params, e. g. /?searchterm='bladiblubb'.

@animaux
Copy link
Contributor

animaux commented Sep 23, 2019

invalid search sections sounds like a more basic problem though. Have you defined the default-sections in your config?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants