-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: Indexes Directory
PostPosted: Fri Oct 26, 2007 11:19 pm 
Regular
Regular

Joined: Fri Oct 05, 2007 1:17 pm
Posts: 78
2 quick questions:

1) I am using Hibernate Search with a JPA implementation. When specifying the "hibernate.search.default.indexBase" property in my persistence.xml, what is the directory relative to? In a web application, is it relative to the application root? In a TestNG test, is it relative to the directory of the test class?

2) I am new to both Hibernate Search and Lucene. I read in the Lucene documentation that all logical operators are to be all caps like AND, OR, etc. Is this a requirement when handing a query to Hibernate Search, or does Hibernate Search relax this?

Thanks for any insight.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 26, 2007 11:35 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
1. It will depend on your app server. Give it a test.
For TestNG, it will be the "current" directory where the VM has been started

I usually use absolute path

2. If you use the Lucene query parser, then same requirement applies, if you write your own (or change the Lucene one), you can relax that. However I expect most people to use the Lucene query programmatic API to build the query rather than use the Lucene query parser, at least for anything moderately complex

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Sat Oct 27, 2007 12:07 am 
Regular
Regular

Joined: Fri Oct 05, 2007 1:17 pm
Posts: 78
Thanks for the quick reply...and from the project lead no less. Now that is what I call fast service!

I will use an absolute directory for the indexes, and I will take a look at the Lucene query programmatic API.

Seriously, Emmanuel, thanks.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.