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
Does $xwiki.lucene return something ? Because you don't mention having added the plugin in xwiki.cfg, did you ? 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.StandardAnalyzer
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 [email protected] mailing list. To unsubscribe: mailto:[email protected] For general help: mailto:[email protected]?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
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- [email protected] mailing list. To unsubscribe: mailto:[email protected] For general help: mailto:[email protected]?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- [email protected] mailing list. To unsubscribe: mailto:[email protected] For general help: mailto:[email protected]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/ wws
Vincent Massol wrote:
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. Hi Vincent,
You are right, an issue has been created : http://jira.xwiki.org/jira/browse/XWIKI-965 I'm about to submit a patch Arnaud.
participants (3)
-
Arnaud Thimel -
Ludovic Dubost -
Vincent Massol