[xwiki-users] Use lucene search as default

2009-02-06 Thread Hernández Cuchí , Francisco Ricardo
Hello everybody,

 

How can i set that the search panel uses lucene search as default, instead of 
the normal search?

 

Thanks

 

Francisco

 

--

Francisco Hernández Cuchí

OFICINA ESPAÑOLA DE PATENTES Y MARCAS

 

**
IMPORTANTE: El contenido de este correo y ficheros adjuntos es confidencial y 
está dirigido únicamente 
para el destinatario/s.
Si Ud recibe este correo por error, por favor póngase en contacto con su 
administrador de correo o con el 
emisor immediatamente y no difunda su contenido a nadie ni haga copias.
*** Este correo ha sido escaneado de virus y contenido malicioso ***
**
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Use lucene search as default

2009-02-06 Thread Guillaume Lerouge
Hi,

On Fri, Feb 6, 2009 at 10:11 AM, Hernández Cuchí, Francisco Ricardo 
francisco.hernan...@oepm.es wrote:

 Hello everybody,

 How can i set that the search panel uses lucene search as default, instead
 of the normal search?


Go to the panel page, click on edit, look for /Main/WebSearch in the code,
replace it with Main/LuceneSearch , save the page, you're done ;-)

Guillaule


 Thanks



 Francisco



 --

 Francisco Hernández Cuchí

 OFICINA ESPAÑOLA DE PATENTES Y MARCAS




 **
 IMPORTANTE: El contenido de este correo y ficheros adjuntos es confidencial
 y está dirigido únicamente
 para el destinatario/s.
 Si Ud recibe este correo por error, por favor póngase en contacto con su
 administrador de correo o con el
 emisor immediatamente y no difunda su contenido a nadie ni haga copias.
 *** Este correo ha sido escaneado de virus y contenido malicioso ***

 **
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users




-- 
Guillaume Lerouge
Product Manager - XWiki
Skype ID : wikibc
http://guillaumelerouge.com/
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Use lucene search as default

2009-02-06 Thread christophe perinaud
Hello,

You can edit the search panel and replace the link to the search page to the
lucene one. I did like that in my wiki

Also, in the 1.8 Lucene will be the default. It must be confirm by someone
from the xwiki team.

2009/2/6 Hernández Cuchí, Francisco Ricardo francisco.hernan...@oepm.es

 Hello everybody,



 How can i set that the search panel uses lucene search as default, instead
 of the normal search?



 Thanks



 Francisco



 --

 Francisco Hernández Cuchí

 OFICINA ESPAÑOLA DE PATENTES Y MARCAS




 **
 IMPORTANTE: El contenido de este correo y ficheros adjuntos es confidencial
 y está dirigido únicamente
 para el destinatario/s.
 Si Ud recibe este correo por error, por favor póngase en contacto con su
 administrador de correo o con el
 emisor immediatamente y no difunda su contenido a nadie ni haga copias.
 *** Este correo ha sido escaneado de virus y contenido malicioso ***

 **
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Use lucene search as default

2009-02-06 Thread Vincent Massol

On Feb 6, 2009, at 10:14 AM, christophe perinaud wrote:

 Hello,

 You can edit the search panel and replace the link to the search  
 page to the
 lucene one. I did like that in my wiki

 Also, in the 1.8 Lucene will be the default. It must be confirm by  
 someone
 from the xwiki team.

We'd like to make lucene search the default for some time but we still  
have some issues with our lucene plugin.
See 
http://jira.xwiki.org/jira/secure/IssueNavigator.jspa?reset=truemode=hidepid=10331resolution=-1sorter/field=updatedsorter/order=DESC

Thanks
-Vincent



 2009/2/6 Hernández Cuchí, Francisco Ricardo francisco.hernan...@oepm.es 
 

 Hello everybody,



 How can i set that the search panel uses lucene search as default,  
 instead
 of the normal search?



 Thanks



 Francisco
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] MIT Simile Widgets (spiffy JS Timeline/Timeplot/Timegrid) for Xwiki?

2009-02-06 Thread [Ricardo Rodriguez] Your EPEC Network ICT Team
Hi Niels,


Niels Mayer wrote:


 Did you remember to  do this:
 ...
 script src=http://simile.mit.edu/timeline/api/timeline-api.js;
 type=text/javascript/script

 At the bottom of the HTTP Meta Information field in *Administration*  *
 Presentation*.
 ..
Thanks for your help!

Yeap, I did that, restarted Tomcat (just in case!) and saved the page as 
admin.

Here the error:

http://xgmx.environmentalchange.net/xwiki/bin/view/Timeline/ChangesList

Any input will be welcome!

Cheers,

Ricardo

-- 
Ricardo Rodríguez
Your EPEC Network ICT Team

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] doc.saveAttachmentContent(attImg, context) NOT working with v1.7

2009-02-06 Thread Ajdin Brandic
I am really frustrated with this now.
 
I cannot get to save an attachment to a document although all works well
on my local xwiki instance 1.6.1.
 
As discussed in post Re: [xwiki-users]
groovy.lang.MissingMethodException - Nosignatureof method
and suggested by Denis Gervalle 
 
-def attP = doc.getAttachment(filenameToSavaAs)
-if( !attP ) attP = new
com.xpn.xwiki.doc.XWikiAttachment(doc,filenameToSavaAs)
-doc.getAttachmentList().add(attP)
-attP.content = imgAsBites
-attP.author = context.user
-// attP.comment = 'comments for your attachement if you want'
-doc.saveAttachmentContent(attP,context)  
 
This however generates a new instance of the same file every time the
code is run.  This is the same on v1.6 and 1.7 that myxwiki runs.
I've tried doing
doc.getAttachmentList().add(doc.getAttachmentList().indexOf(attP),attP)
but this fails saying that the index is -1.
Also on the 1.6 version if I restart glassFish only one file instance is
left in the attachment area. Clears the chache.
 
But the code below works perfect on my local instance yet on myxwiki the
attached file disappears after a while cos it is not stored permanently.
 
//convert from doc.XWikiDocument to api.Document
 com.xpn.xwiki.api.Document apidoc = new
com.xpn.xwiki.api.Document(doc,context);   
//get image from url as byte[]
 def imgAsBites =
xwiki.getURLContentAsBytes(http://www.websequencediagrams.com/index.php
+umlImage, context);
//add to api document (this doesn't save it permanently)
 def attImg = apidoc.addAttachment(filenameToSavaAs, imgAsBites);

//this saves it on v1.6
 doc.saveAttachmentContent(attImg, context) ;

  //remove existing error file
  //there seams to be a bug in deleteAttachment so will
overwrite existing file with a blank one
  def att = doc.getAttachment(ErrorLogUML.txt); 
  if( att ) { 
def attString = No ERRORS;
def attByteArr = attString.getBytes();   
def attTxt = apidoc.addAttachment(ErrorLogUML.txt,
attByteArr); 
doc.saveAttachmentContent(attTxt, context) ;  
  } 
  //end
apidoc.save();
 
 


NOTICE

This message and any files transmitted with it is intended for the addressee 
only and may contain information that is confidential or privileged. 
Unauthorised use is strictly prohibited. If you are not the addressee, you 
should not read, copy, disclose or otherwise use this message, except for the 
purpose of delivery to the addressee. 

Any views or opinions expressed within this e-mail are those of the author and 
do not necessarily represent those of Coventry University.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] MIT Simile Widgets (spiffy JS Timeline/Timeplot/Timegrid) for Xwiki?

2009-02-06 Thread Niels Mayer
(1) check to see whether the affected tables and queries in the timeline
example are
actually *in* your database and that the schema hasn't changed (any xwiki
experts feel free to
chime in on whether this is or isn't the problem -- tho I'm pretty sure that
doc.space was in 1.3...).

... and if it's not a db  schema issue ...

(2) It also might be a variant of the problem i found with inappropriate
characters in documents, spaces and subject/titles thereof.
Your error is:

 RCSNode Info as ni where doc.id=ni.id.doc Id and ni.id.version2=1 group by
 doc.space, doc.name order by max(ni.date) 
 desc?http://xgmx.environmentalchange.net/xwiki/bin/edit/select+distinct+doc.web%2C+doc.name%2C+max%28ni.date%29+from+XWikiDocument+as+doc+%2C+XWikiRCSNodeInfo+as+ni+where+doc.id%3Dni.id.docId+and+ni.id.version2%3D1+group+by+doc.space%2C+doc.name+order+by+max%28ni/date%29+desc?parent=Timeline.ChangesListWrapped
  Exception: could not resolve property: space of:
 com.xpn.xwiki.doc.XWikiDocument web, doc.name, max(ni.date) from
 com.xpn.xwiki.doc.XWiki Document as doc , com.xpn.xwiki.doc.rcs.XWiki
 RCSNode Info as ni where doc.id=ni.id.doc Id and ni.id.version2=1 group by
 doc.space, doc.name order by max(ni.date) 
 desc?http://xgmx.environmentalchange.net/xwiki/bin/edit/select+distinct+doc.web%2C+doc.name%2C+max%28ni.date%29+from+com.xpn.xwiki.doc.XWikiDocument+as+doc+%2C+com.xpn.xwiki.doc.rcs.XWikiRCSNodeInfo+as+ni+where+doc.id%3Dni.id.docId+and+ni.id.version2%3D1+group+by+doc.space%2C+doc.name+order+by+max%28ni/date%29+desc?parent=Timeline.ChangesList@
  Timeline.ChangesList
 17,45?http://xgmx.environmentalchange.net/xwiki/bin/edit/Timeline/17%2C45?parent=Timeline.ChangesList

From:

 Error number 4001 in 4: Error while parsing velocity page
 Timeline.ChangesList Wrapped Exception: Invocation of method
 'searchDocuments' in class com.xpn.xwiki.api.XWiki threw exception
 com.xpn.xwiki.XWikiException: Error number 3223 in 3: Exception while
 searching documents with SQL
 http://xgmx.environmentalchange.net/xwiki/bin/view/Timeline/ChangesListweb,
 doc.name, max(ni.date) from XWiki Document as doc , XWiki RCSNode Info as ni
 where doc.id=ni.id.doc Id and ni.id.version2=1 group by doc.space, doc.name
 order by max(ni.date) 
 desc?http://xgmx.environmentalchange.net/xwiki/bin/edit/select+distinct+doc.web%2C+doc.name%2C+max%28ni.date%29+from+XWikiDocument+as+doc+%2C+XWikiRCSNodeInfo+as+ni+where+doc.id%3Dni.id.docId+and+ni.id.version2%3D1+group+by+doc.space%2C+doc.name+order+by+max%28ni/date%29+desc?parent=Timeline.ChangesList


Do any of your spaces (or document names) have inappropriate characters,
like `` ' '' or ``  '

For some reason these don't necessarily get noticed (to the point of
creating problems that pop up backtraces),  until you run the timeline:
http://jira.xwiki.org/jira/browse/XE-376 ( characters entered as document
title must be escaped or a cascade of bugs occur ). Edit/save the offending
document even fixes em -- with lossage of all characters after first '  '

And all it takes is one document with one such character to make the
Timeline blow up. The extra quotes could be in some innocent document made
years ago... but if you accidentally quoted a phrase in a subject
somewhere it triggers the error. Solution: use two single quotes, e.g.
``quoted a phrase'' ...

I'm Stating #2 on remote chance my intuituion on this is correct. I didn't
spend much time looking at your site to find such docs, etc...just got the
error backtrace and noticed the oddness of it.

Niels
http://nielsmayer.com

On Fri, Feb 6, 2009 at 1:41 AM, [Ricardo Rodriguez] Your EPEC Network ICT
Team webmas...@environmentalchange.net wrote:

 Yeap, I did that, restarted Tomcat (just in case!) and saved the page as
 admin.

 Here the error:

 http://xgmx.environmentalchange.net/xwiki/bin/view/Timeline/ChangesList

 Any input will be welcome!


___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users