Hello,
I'm trying to build a community website with Elgg, and I found form was perfect for one of my needs.
I installed, created forms, created sample content, everything worked like a charm, until I tried to search.
The default Elgg search doesn't search through the user content created using Form entries. I've spent days trying to tweak settings, etc, but no luck. I think I'm missing something.
Anyway, I tried installing custom search as a test, and it searches and displays the content well, except it duplicates the page. See here:
http://adventure.ug/pg/search/?tag=monarch
The top "half" is using custom search and returns the results I want. The bottom "half" is using Elgg default search, but doesn't return the user content submitted using form.
So two questions:
1. Can I run Form using the built in search in Elgg? I rather like the default search system in Elgg.
2. If not, is there a workaround using another search system?
Any help is very highly appreciated.
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by RaĆ¼l Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
allright ! thx a lot !!
The new release 0.88 is up here:
http://community.elgg.org/pg/plugins/release/747913/developer/kevin/form-and-related-plugins
Hope it fixes your problem.
Hello Kevin,
Thank you for your release, you did a great job!! We downloaded and installed it.
The only problem we have is that it is returning only a "Tags" search and not "user content" search.
That is it only returns exact matches, not for words within text.
We would like the search to work more like a full text search (initially we added a plugin "full text search" that worked even with your plugin) : for example an user enter a list of company in his profile description which is a text field and we want to be able to search for words inside the text (like a classical full text search).
Any ideas to perform this point ?
Regards
StB
When you edit a custom form definition, you can provide a list of the internal names of the fields you want to be searchable.
From then on, any new content created using that form will be full text searchable.
We are getting close!!
Maybe we missed something :
We had provided the list of internal names of the fields we want to be searchable in "form configuration" under "form:search_fields_label" as u can see on the screenshot.
http://www.nomadworkgroup.com/Elgg/05-plug-configuration.jpg
And we created a new field called "test" and in one profile we entered 3 words (sncf edf train)
We try 2 type of search :
- First search with one word which return no result (see the 2 screenshots below)
http://www.nomadworkgroup.com/Elgg/01-search-oneword.jpg
http://www.nomadworkgroup.com/Elgg/02-noresult-oneword.jpg
- Second search with the exact match : "sncf edf train" and we got a result under tags search (see the 2 screenshots below)
http://www.nomadworkgroup.com/Elgg/03-search-exactcontent.jpg
http://www.nomadworkgroup.com/Elgg/04-result-exactcontent.jpg
Can you think a reason why we don't get a result for one world ?
Did we make something wrong ?
Best Regards Kevin
StB
I'm away from my desk for a week but will fix this when I return.
Ok
Have a good week Kevin !!
StB,
I have now got a chance to take a look at this. The string handles 'form:search_fields_label' and 'form:search_fields_description' are defined in mod/form/languages/en.php on lines 371 and 372.
If they are not appearing for you, it suggests that your install is broken somehow and this may also explain why search is not working for you.
Can you try a re-install?
I meant a re-install of the form plugins, not Elgg, just to make that clear.
Hello Kevin,
Ok we re-installed, but in fact the string handles 'form:search_fields_label' and 'form:search_fields_description' didn't appear because it is true that we didn't replaced the langage file en.php (because we had it customized (sorry about that !)).
Here we fixed that :
http://www.nomadworkgroup.com/Elgg/06-plug-configuration.jpg
But it still doesn't work!!
Just so you know, in the plugin folder we only use "form" and "flexprofile", should the full text search work anyway (as we described it above) with only this two folders?
Any idea why it doesn't work for us?
Thanks Kevin for your patience and all your time you spent to help us to fix that.
Regards
StB
- Previous
- 1
- 2
- 3
- 4
- Next
You must log in to post replies.