Hi David and Ludovic,
I have finished implementing the second method proposed to achieve the
distributed search of XWiki.
In method I, the master node search the individual indexes each XWiki
Installation.
In method II, the master node maintains a global index of all the other
XWiki Installations and searches on it.
the code has been committed here
https://svn.xwiki.org/svnroot/xwiki/sandbox/plugins/distributedSearchMethod2
Implementation details of both method I and II are presented in detail @
http://dev.xwiki.org/xwiki/bin/view/Design/DistributedXWikiSearchEngine
---
Sai Krishna
Hi Sergiu,
This test that you wrote has failed on Hudson:
public void testTimeComplexity()
{
ArrayList<String> tests = new ArrayList<String>();
ArrayList<String> expects = new ArrayList<String>();
// Something like this should be (negatively) matched in
linear time, thus it should take no
// time. If the build takes a lot, then the regular
expression is not in linear time, thus
// wrong.
String text = "*";
for (int i = 0; i < 1000; ++i) {
text += "abc *";
}
tests.add(text);
expects.add(text);
long startTime = System.currentTimeMillis();
test(tests, expects);
// Even on very slow systems this should not take more than
one second. Putting 10 seconds,
// just to be sure we don't get false test errors.
assertTrue(System.currentTimeMillis() - startTime < 10000);
}
Result here:
http://hudson.xwiki.org/job/xwiki-platform-core-trunk/com.xpn.xwiki.platfor…
So it seems it took more than 10 seconds.
Does it mean the code is not working?
What should we do?
Thanks
-Vincent
Hi Marius,
Is this still needed? Can we remove it now?
Thanks
-Vincent
On Aug 22, 2008, at 4:56 PM, mflorea (SVN) wrote:
> Author: mflorea
> Date: 2008-08-22 16:56:13 +0200 (Fri, 22 Aug 2008)
> New Revision: 11972
>
> Modified:
> platform/xwiki-tools/trunk/xwiki-configuration-resources/src/main/
> resources/xwiki.cfg.vm
> Log:
> XWIKI-2497: I added the xwiki.wysiwygnew parameter in order to
> enable/disable the new WYSIWYG editor.
>
> Modified: platform/xwiki-tools/trunk/xwiki-configuration-resources/
> src/main/resources/xwiki.cfg.vm
> ===================================================================
> --- platform/xwiki-tools/trunk/xwiki-configuration-resources/src/
> main/resources/xwiki.cfg.vm 2008-08-22 14:44:31 UTC (rev 11971)
> +++ platform/xwiki-tools/trunk/xwiki-configuration-resources/src/
> main/resources/xwiki.cfg.vm 2008-08-22 14:56:13 UTC (rev 11972)
> @@ -236,4 +236,9 @@
> #-# Add a prefix to all databases names of the wikis in virtual mode
> and to the wiki name in non virtual mode
> # xwiki.db.prefix=
>
> +#-# [SINCE 1.6M1]
> +#-# Enable the new, experimental, GWT-based WYSIWYG editor.
> +#-# It will be accessible by having 'editor=wysiwygnew' in the
> query string of the edit URL.
> +xwiki.wysiwygnew=1
> +
> $!xwikiCfgAdditionalProperties
Hi,
When exporting the page into PDF displaying the following error.
How can solve this issue..?
org.dom4j.DocumentException: Error on line -1 of document : Premature end
of file. Nested exception: Premature end of file.
at org.dom4j.io.SAXReader.read(SAXReader.java:482)
at
com.xpn.xwiki.pdf.impl.PdfExportImpl.applyCSS(PdfExportImpl.java:332)
at
com.xpn.xwiki.pdf.impl.PdfExportImpl.applyCSS(PdfExportImpl.java:293)
at
com.xpn.xwiki.pdf.impl.PdfExportImpl.exportHtml(PdfExportImpl.java:202)
at
com.xpn.xwiki.pdf.impl.PdfExportImpl.export(PdfExportImpl.java:225)
at
com.xpn.xwiki.web.ExportAction.exportPDFOrRTF(ExportAction.java:198)
at com.xpn.xwiki.web.ExportAction.render(ExportAction.java:61)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:189)
at
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
at
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at
com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:117)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595)
Nested exception:
--
Prathap
Greetings
I finally completed my knowledge base. I separate the information in pages, and organize it by subject and
knowledge base. To do that I tag every page with a subject tag and a knowledge tag always started with "KB-".
If I want one page pesent in two knowledge bases I only nedd to tag it with the tags.
I send the example for you to see and say if it's worthy of being in the XWiki Code Zone?
Best regards
Bruno Neves