Hello. I want to do Hibernate Search. I read various articles on this topic, in particular here: http://hibernate.org/search/documentation/getting-started/
There is an example of the configuration of hibernate.cfg.xml The lines in this file are as follows:
<property name="hibernate.search.default.directory_provider">value="filesystem"</property> <property name="hibernate.search.default.indexBase">value="/var/lucene/indexes"</property> I understand that the first line says that the index is created in the file system, and the second indicates the path to it.
But the fact is that I work in Windows and, apparently, in my case, the path to the index will look a little different.
I write this:
<property name="hibernate.search.default.directory_provider">value="filesystem"</property> <property name="hibernate.search.default.indexBase">value="D:\JDev\hg\indexes"</property> Initially, there are no indexes in this pack, and I suppose that they should appear after the launch of the application, but “something goes wrong” (c)
At the time of opening the session session = sessionFactory.openSession ();
I get an error in the form:
Starting Jetty on port 8888 [WARN] unavailable java.lang.NullPointerException ...
What am I doing wrong, tell me?