On Mar 9, 2007, at 10:07 AM, Ludovic Dubost wrote:
Does $xwiki.lucene return something ?
Because you don't mention having added the plugin in xwiki.cfg, did
you ?
I did. As I said below it works fine for returning page names.
Thanks
-Vincent
Ludovic
Vincent Massol a écrit :
Hi there,
As I wanted to apply to some for the lucene plugin I've tried to
use it (I don't know anything about it really). However it's not
been working for me and it doesn't return anything when doing a
full text search.
Here's what I've done:
Configuration:
xwiki.plugins.lucene.indexdir=/tmp/lucene/xwiki
xwiki.plugins.lucene.analyzer=org.apache.lucene.analysis.standard.Sta
ndardAnalyzer
xwiki.plugins.lucene.indexinterval=20
Usage:
#set($results = $xwiki.lucene.getSearchResults("wordToLookUp",
"default,en,fr"))
nb found : $results.hitcount
#foreach($result in $results.results)
* [${result.web}.${result.name}] #if($result.filename)
($result.filename)#end : $result.score
#end
This works if I use the following query "name:NameOfAPage" but it
doesn't with "wordToLookUp". I have even tried a reindexation by
calling ($xwiki.lucene.rebuildIndex()) to no avail.
Can anyone help? Is the plugin working at all?
Thanks
-Vincent
---------------------------------------------------------------------
---
--
You receive this message as a subscriber of the xwiki-
dev(a)objectweb.org mailing list.
To unsubscribe: mailto:xwiki-dev-unsubscribe@objectweb.org
For general help: mailto:sympa@objectweb.org?subject=help
ObjectWeb mailing lists service home page: http://
www.objectweb.org/wws
--
Ludovic Dubost
Blog:
http://www.ludovic.org/blog/
XWiki:
http://www.xwiki.com
Skype: ldubost GTalk: ldubost AIM: nvludo Yahoo: ludovic
--
You receive this message as a subscriber of the xwiki-
dev(a)objectweb.org mailing list.
To unsubscribe: mailto:xwiki-dev-unsubscribe@objectweb.org
For general help: mailto:sympa@objectweb.org?subject=help
ObjectWeb mailing lists service home page:
http://www.objectweb.org/
wws