symphonists / search_index

Search Index provides an easy way to implement high performance fulltext searching on your Symphony site
32 stars 21 forks source link

Using Symphony URL Parameters Full Example? #59

Open craigerskine opened 5 years ago

craigerskine commented 5 years ago

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 commented 5 years ago

@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 commented 5 years ago

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