PhraseQuery vs MultiPhraseQuery

2010-05-28 Thread Emmanuel Bernard
Hello, I am a bit confused by the two. Is there a fundamental difference between PhraseQuery query = new PhraseQuery(); query.add(term1, 0); query.add(term2, 0); and MultiPhraseQuery query = new MultiPhraseQuery(); query.add( new Term[] { term1, term2 } ); The only different I could think of i

Re: Quesion about the index directory security

2009-07-01 Thread Emmanuel Bernard
Have you looked at the Hibernate Search declarative filter feature which is some bells and whistles on top of the Lucene filter feature. Typically you would keep the credential levels in the document and filter by the user's credential. On Wed, 2009-07-01 at 07:55 -0400, Bryan Doherty wrote: > C

Re: Hibernate Search

2008-08-12 Thread Emmanuel Bernard
You probably should ask your question on the Hibernate forum as well. You will more likely find actual Hibernate Search users there :) http://forum.hibernate.org/viewforum.php?f=9 -- Emmanuel Bernard http://in.relation.to/Bloggers/Emmanuel | http://blog.emmanuelbernard.com | http

Re: Improving search performance

2008-05-30 Thread Emmanuel Bernard
0 threads) there could be contention around those methods. Otis -- Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch - Original Message ---- From: Emmanuel Bernard To: java-user@lucene.apache.org Sent: Friday, May 23, 2008 6:41:36 PM Subject: Re: Improving search performance Hi Hiber

Re: Improving search performance

2008-05-28 Thread Emmanuel Bernard
e that checks whether a doc is deleted, that get called during search. If you have a pile of threads (op. p. mentioned 100 threads) there could be contention around those methods. Otis -- Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch - Original Message From: Emmanuel B

Re: Improving search performance

2008-05-23 Thread Emmanuel Bernard
Hi Hibernate Search does not pool the Searcher but pools the underlying IndexReader(s). From what i've seen, a Searcher is stateless and all the state is kept in the Readers. so this essentially is equivalent to reusing the searcher. Out of curiosity why is a pool of Searcher more efficien

Re: confused about an entry in the FAQ

2008-05-23 Thread Emmanuel Bernard
Hi Stephane Can you tell me a bit more about the deadlocks you experience with Hibernate Search. I have not seen such a situation so far and am interested to see how to fix the problem. Emmanuel On May 12, 2008, at 06:13, Stephane Nicoll wrote: Hibernate Search introduces deadlock with m

Re: Searching for multiple criteria (accross 2 tables)

2008-02-23 Thread Emmanuel Bernard
Not sure if it's too late for you. But here are my comments if you want to stick with Hibernate and Hibernate Search Generally speaking, once you have the query to retrieve the data per id, you can map this query to an entity in Hibernate using either: - @Formula for simple cases - @Loader

Re: Lucene as primary object storage

2007-06-30 Thread Emmanuel Bernard
eries, ability to do correlated queries between 2 or more "associated" entities/documents), but that should be good enough to give you an idea of that I think. On Jun 29, 2007, at 08:48, karl wettin wrote: 28 jun 2007 kl. 15.37 skrev Emmanuel Bernard: I don't really like the ide

Re: Lucene as primary object storage

2007-06-28 Thread Emmanuel Bernard
Hibernate Search (formerly known as Hibernate Lucene) is not designed to use Lucene as the primary and only backend. It is designed to complement a database. I don't really like the idea actually: I'm much comfortable with having my data in a relational DB :) So this product will not help f

Re: How to Update the Index once it is created

2007-05-22 Thread Emmanuel Bernard
The indexation part of Hibernate Search relies on Java Persistence API to triggers the index update transparently. Otherwise you can trigger it manually to follow the crawling approach (not transparent). Event driven vs crawling driven index update have both use cases, I would not say that on

Re: Fwd: Hibernate Lucene trademark issues

2006-11-23 Thread Emmanuel Bernard
ways updating. Is there any way to solve this in Hibernate Search? Richie 2006/11/19, Emmanuel Bernard <[EMAIL PROTECTED]>: > > I forgot a couple of things. > I do not think that all your object properties belongs to the Index, and > some of them will be put in the index wit

Re: Fwd: Hibernate Lucene trademark issues

2006-11-18 Thread Emmanuel Bernard
x27;s my opinions, and some people can disagree ;-) Emmanuel Bernard wrote: Hi, I am not really familiar with Compass I haven't really looked at the code, Hibernate Lucene (now renamed Hibernate Search) started from a user demand. I had some in depth discussions though, with some users that

Re: Fwd: Hibernate Lucene trademark issues

2006-11-18 Thread Emmanuel Bernard
www.mail-archive.com/hibernate-dev%40lists.jboss.org/msg00393.html HTH Emmanuel Lukas Vlcek wrote: Emanuael, I would be glad to hear your answer here (on user list). Regards, Lukas -- Forwarded message ------ From: Emmanuel Bernard <[EMAIL PROTECTED]> Date: Nov 13, 2006 11

Re: Modelling relational data in Lucene Index?

2006-11-06 Thread Emmanuel Bernard
I had a quick look at SOLR and DBSight. They seem to achieve a different goal than Hibernate Lucene. The formers belong to the project box category: you set up a server that will handle the search for you. The application will then delegate the work to those servers. The latter belongs to the fr

Re: Modelling relational data in Lucene Index?

2006-11-03 Thread Emmanuel Bernard
Hi, What exactly are your concerned about the "non-detached" approach (see below)? Chris Lu wrote: I would prefer a detached approach instead of Hibernate or EJB's approach, which is kind of too tightly coupled with any system. How to it is probably going to be couple with yours ;-) rebuild

Re: Modelling relational data in Lucene Index?

2006-11-03 Thread Emmanuel Bernard
Hi No, he is talking about http://www.hibernate.org/hib_docs/annotations/reference/en/html/lucene.html Also note that I'm about to release a new version much more flexible http://www.mail-archive.com/hibernate-dev%40lists.jboss.org/msg00392.html and for the future (but flexible) http://www.mail-a

Re: DateTools oddity....

2006-10-18 Thread Emmanuel Bernard
saving mess. Michael J. Prichard wrote: Dang it :) Anyway to set timezone? Emmanuel Bernard wrote: DateTools use GMT as a timezone Tue Aug 01 21:15:45 EDT 2006 Wed Aug 02 02:15:45 EDT 2006 Michael J. Prichard wrote: When I run this java code: Long dates = new Long

Re: DateTools oddity....

2006-10-18 Thread Emmanuel Bernard
DateTools use GMT as a timezone Tue Aug 01 21:15:45 EDT 2006 Wed Aug 02 02:15:45 EDT 2006 Michael J. Prichard wrote: When I run this java code: Long dates = new Long("1154481345000"); Date dada = new Date(dates.longValue()); System.out.println(dada.toString()); System.out