Lucene plugin working?

Vincent Massol vincent at massol.net
Fri Mar 9 08:55:51 CET 2007


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.Standa 
rdAnalyzer
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





More information about the devs mailing list