Hi to everyone,
I'm trying to make a search field to look for components/areas/pages added by
the user to create a page following this
[url=https://documentation.magnolia-cms.com/display/DOCS/Search]documentation[/url].
My actual code in a template:
[code][#assign searchResults = searchfn.searchContent("website", "a", "/home",
"mgnl:area") /]
[#assign recordsFound = searchResults?size /]
<p>RESULTS: ${recordsFound!}</p>
[#if searchResults?has_content]
[#list searchResults as item]
<p> each result </p>
[/#list]
[/#if][/code]
Some explanation:
- I'm using magnolia standard version;
- I'm using [i]jackrabbit-bundle-mysql-search[/i] as database;
- My database is up and runing;
- searchfn is uncommented in freemarker rendering configurations;
And my questions:
1- Do I need to change something in magnolia.properties to make search working?
2- Do I need to create a java class to control search
3- Do I need extra dependencies?
4- Where I can see the information stored by search so I could use it like in
[url=https://documentation.magnolia-cms.com/display/DOCS/Search#Search-Displayingcontentstoredinapps]this[/url]
example?
5- How can I change [i]indexing_configuration.xml[/i]? I'have stored mine in
same folder as [i]jackrabbit-bundle-mysql-search[/i] and pointing the parameter
as [i]<param name="indexingConfiguration"
value="/indexing_configuration.xml"/>[/i] but is seems that magnolia can't find
it...
6- Do I need to change something in magnolia configuration/definitions apps?
Answering my questions will help a lot and guide me somewhere.
Thanks in advance.
Happy coding!
--
Context is everything:
http://forum.magnolia-cms.com/forum/thread.html?threadId=6fd12540-71d0-4b9b-9abc-63c2b1f00087
----------------------------------------------------------------
For list details, see http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------