Important Notice - Forums is archived
To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
LuceneContainer
Hi,
I finally committed my LuceneContainer project into incubator svn. The project contains also a demo application.
The LuceneContainer is simple Vaadin container integrated with the lucene index. For more information and live demo visit the homepage of the LuceneContainer
Please reply to the thread if you have bug reports or feature requests.
---
edit: fixed demo url
Hi!
I, just added the support for the server side lazy loading into the LuceneContainer. Now, also the sorting is optional, which saves the memory if no sorting is needed. Please, test it and report back if you find bugs etc :)
-Johannes
I updated the LuceneContainer add-on and its demo application. It is now more tightly integrated with the vaadin.data.Item. There is two new classes: LuceneContainerItem and LuceneContainerProperty.
I'm trying to use your component but I have issues compiling it into my widgetset. The issue I have is that it is not seen during the process. For example:
INFO: Widgetsets found from classpath:
com.vaadin.terminal.gwt.DefaultWidgetSet in jar:file:Z:/NetBeans/Xinco/3.00.xx/XincoLibs/vaadin-6.7.2.jar!/
org.vaadin.easyuploads.EasyuploadsWidgetset in jar:file:Z:/NetBeans/Xinco/3.00.xx/XincoLibs/Vaadin Addons/easyuploads-0.4.9.jar!/
org.vaadin.hene.expandingtextarea.widgetset.ExpandingtextareaWidgetset in jar:file:Z:/NetBeans/Xinco/3.00.xx/XincoLibs/Vaadin Addons/expandingtextarea-0.1.jar!/
org.vaadin.risto.stepper.widgetset.StepperWidgetset in jar:file:Z:/NetBeans/Xinco/3.00.xx/XincoLibs/Vaadin Addons/stepper-1.1.0.jar!/
Your add-on is in the same folder as the others and part of the class path. Maybe a version issue? I'm on Vaadin 6.7.2.
Javier Alberto Ortiz Bultron: I'm trying to use your component but I have issues compiling it into my widgetset. The issue I have is that it is not seen during the process.
It is a fully server-side add-on so there is nothing to include in the widgetset for it.
Hello Johannes Tuikkala,
I am trying to use LuceneContainer, but JBoss7 was giving me the following error:
Caused by: javax.persistence.PersistenceException: PersistenceProvider ' org.eclipse.persistence.jpa.PersistenceProvider ' not found
This problem is related to jpa and persistence.xml, none of which I am using in my project. And so it left me puzzling for a whole day as to the sources of the problem. By a tedious process of elimination, I identified LuceneContainer as the culprit -- precisely, in the /lucene/META-INF/persistence.xml file.
Why force the user to use eclipselink.jar? In JBoss7 (which is what I am using), eclipselink as a 'persistence provider' is not yet supported. There is not even a LuceneContainer README to inform users of the eclipselink requirement. See the LuceneContainer persistence.xml below:
<?xml version="1.0" encoding="UTF-8"?>
<persistence version="1.0"
xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd">
<persistence-unit name="LuceneContainer">
<provider>
org.eclipse.persistence.jpa.PersistenceProvider
</provider>
<class>org.vaadin.lucenecontainer.facade.UPCPojo</class>
<exclude-unlisted-classes>false</exclude-unlisted-classes>
<properties>
<property name="eclipselink.logging.level" value="OFF" />
<property name="javax.persistence.jdbc.driver" value="org.hsqldb.jdbcDriver" />
<property name="javax.persistence.jdbc.url" value="jdbc:hsqldb:mem:example" />
<property name="javax.persistence.jdbc.user" value="sa" />
<property name="javax.persistence.jdbc.password" value="" />
<property name="eclipselink.target-database" value="org.eclipse.persistence.platform.database.HSQLPlatform" />
<property name="eclipselink.ddl-generation" value="drop-and-create-tables" />
<property name="eclipselink.ddl-generation.output-mode" value="database" />
<property name="eclipselink.orm.throw.exceptions" value="true" />
</properties>
</persistence-unit>
</persistence>
Good job with the LuceneContainer; I have no choice but to 'dis-use' it in my project.