Re: [hibernate-dev] [Search] Sharding and access to (subsets) of index readers and Lucene directories in HS 4.0

2011-09-06 Thread Sanne Grinovero
On 6 September 2011 13:56, Hardy Ferentschik wrote: > +1 for #2 for 4.0 > > in the long run I like the simplicity of #3. I found #1 a bit of an > overkill at least > what I saw last in the discussion around this. > > --Hardy Ok, follow up is HSEARCH-903 Sanne

Re: [hibernate-dev] [Search] Sharding and access to (subsets) of index readers and Lucene directories in HS 4.0

2011-09-06 Thread Hardy Ferentschik
+1 for #2 for 4.0 in the long run I like the simplicity of #3. I found #1 a bit of an overkill at least what I saw last in the discussion around this. --Hardy On Tue, 06 Sep 2011 13:05:01 +0200, Sanne Grinovero wrote: > We need to take a decision regarding API changes to unlock the beta

Re: [hibernate-dev] [Search] Sharding and access to (subsets) of index readers and Lucene directories in HS 4.0

2011-09-06 Thread Sanne Grinovero
We need to take a decision regarding API changes to unlock the beta releases; so we should take a decision on this subject. Summarizing the last proposals: 1) Use a builder API, which defines - targeted entities - enabled shard-aware filters -- parameters on these filters 2) searchFactor

Re: [hibernate-dev] [Search] Sharding and access to (subsets) of index readers and Lucene directories in HS 4.0

2011-08-25 Thread Sanne Grinovero
> As Emmanuel mentioned, can we think of use cases where we would like to > have access to Lucene Directories (/IndexManagers), which is currently > mentioned in the docs: > http://docs.jboss.org/hibernate/search/4.0/reference/en-US/html_single/#d0e6658 > ? > > Elmer Yes that's an important questi

Re: [hibernate-dev] [Search] Sharding and access to (subsets) of index readers and Lucene directories in HS 4.0

2011-08-25 Thread Elmer van Chastelet
> Current signature is not accepting the FullTextFilterImplementor, but > accepts multiple classes: > SearchFactory.openIndexReader(Class... entities); > > Since we can't use two varargs on the same method, this won't work > unless you're suggesting that we should support a single type only. No, t

Re: [hibernate-dev] [Search] Sharding and access to (subsets) of index readers and Lucene directories in HS 4.0

2011-08-25 Thread Hardy Ferentschik
> C - SearchFactory.openIndexReader(String... indexName); > > This is simple I quite like it. And even though you are not going through the > but it is in no way delegating to the ShardingStrategy > to make the index names choice which I think would be way more usable. but you can still impleme

Re: [hibernate-dev] [Search] Sharding and access to (subsets) of index readers and Lucene directories in HS 4.0

2011-08-25 Thread Elmer van Chastelet
On Thu, 2011-08-25 at 13:26 +0200, Emmanuel Bernard wrote: > On 25 août 2011, at 12:09, Elmer van Chastelet wrote: > > > As is also mentioned in [1], there is currently no direct access to the > > index managers, so getting a FSDirectory is currently not possible in > > 4.0alpha1. I think HS shoul

Re: [hibernate-dev] [Search] Sharding and access to (subsets) of index readers and Lucene directories in HS 4.0

2011-08-25 Thread Sanne Grinovero
2011/8/25 Elmer van Chastelet : > Hi all, > > Yesterday I had a discussion with Sanne on irc [3] about the new api to > access index readers in HS4.0. We couldn't complete our discussion > yesterday, so let's continue here. > As explained in the forum [1], there is currently no good solution for >

Re: [hibernate-dev] [Search] Sharding and access to (subsets) of index readers and Lucene directories in HS 4.0

2011-08-25 Thread Hardy Ferentschik
On Thu, 25 Aug 2011 12:09:50 +0200, Elmer van Chastelet wrote: > Currently two basic ideas came to mind: > A - Have a SearchFactory.openIndexReader(Class c, > FullTextFilterImplementor...): This is similar to how the IndexManager's > are gathered at query time, and is probably therefore easy to

Re: [hibernate-dev] [Search] Sharding and access to (subsets) of index readers and Lucene directories in HS 4.0

2011-08-25 Thread Emmanuel Bernard
On 25 août 2011, at 12:09, Elmer van Chastelet wrote: > As is also mentioned in [1], there is currently no direct access to the > index managers, so getting a FSDirectory is currently not possible in > 4.0alpha1. I think HS should support this to offer the flexibility to > work on the Lucene inde

[hibernate-dev] [Search] Sharding and access to (subsets) of index readers and Lucene directories in HS 4.0

2011-08-25 Thread Elmer van Chastelet
Hi all, Yesterday I had a discussion with Sanne on irc [3] about the new api to access index readers in HS4.0. We couldn't complete our discussion yesterday, so let's continue here. As explained in the forum [1], there is currently no good solution for getting a reader with a subset of the indexe