On 04/06/2011 09:31 AM, Marius Dumitru Florea wrote:
On 04/05/2011 08:00 PM, Hasitha Abeykoon wrote:
Hi Marius Dumitru ,
As you have instructed I looked into "Auto Completion" mail threads. Sorry
I was busy with exams past few days, thus i could not keep the touch.
- I went through Aparche Lucene in oder to
figure out the capability of
using it in the suggested project. It does not seems to give everything
which is needed to implement the auto completion (specially the image
facilities.) Please correct me if i am wrong on this.
I'm not sure Lucene is very useful for this project. Lucene is meant for
full-text search in multiple data sources. For this project the
auto-complete suggestions are very targeted. You have to retrieve a list
of wiki pages, attachments, images or macros. I think that it's better
to query this entities directly (there are APIs available). Note that
you can't use Lucene for macros anyway because macros are components:
you have to use the component manager instead. Also, Lucene builds its
index with a delay so the list of suggestions might not be accurate all
the time.
Note that REST (
http://platform.xwiki.org/xwiki/bin/view/Features/XWikiRESTfulAPI ) is
an alternative too for retrieving the auto complete suggestions.
Hope this helps,
Marius
- Can we use JQUERY in oder to do some
client side processing? Caching
the Macros and pictures which have been recently used will be stored in
the browsers cache until the users log out.
Currently we don't use JQuery in XWiki platform. We use Prototype and
you might have problems mixing both. We prefer the client side code to
be written in Prototype so that we can integrate it easier into the
XWiki platform. One of the goals is to make this feature available in
future versions of XWiki Enterprise.
Note that for the WYSIWYG editor some part of the code will have to be
written in GWT because the editor is written in GWT.
- I also looked into how Microsoft word does
autocompletion.
- Please direct me the on current
technologies which can be relevant.
As long as you have a good understanding of native JavaScript code, DOM
API and Java you won't have any problems learning Prototype.js or GWT.
Besides the client side technologies, for this project you will have to
work with the XWiki data model (
http://platform.xwiki.org/xwiki/bin/view/DevGuide/DataModel ), XWiki
rendering (
http://rendering.xwiki.org/ ) and the search APIs for which
you'll have to know HQL (we're using Hibernate as a database abstraction
layer).
Hope this helps,
Marius
Thanks
_______________________________________________
devs mailing list
devs(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/devs