[jira] Commented: (LUCENE-1484) Remove SegmentReader.document synchronization

2008-12-14 Thread Jason Rutherglen (JIRA)
[ https://issues.apache.org/jira/browse/LUCENE-1484?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12656539#action_12656539 ] Jason Rutherglen commented on LUCENE-1484: -- It's in the ant script? I'll do this

[jira] Commented: (LUCENE-1483) Change IndexSearcher to use MultiSearcher semantics for multiple subreaders

2008-12-14 Thread Mark Miller (JIRA)
[ https://issues.apache.org/jira/browse/LUCENE-1483?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12656519#action_12656519 ] Mark Miller commented on LUCENE-1483: - One small error: +public int sortType() {

[jira] Updated: (LUCENE-1483) Change IndexSearcher to use MultiSearcher semantics for multiple subreaders

2008-12-14 Thread Mark Miller (JIRA)
[ https://issues.apache.org/jira/browse/LUCENE-1483?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Mark Miller updated LUCENE-1483: Attachment: LUCENE-1483.patch Here you go. I'm sorry I've made everything so messy :) I'll clean l

[jira] Commented: (LUCENE-1483) Change IndexSearcher to use MultiSearcher semantics for multiple subreaders

2008-12-14 Thread Mark Miller (JIRA)
[ https://issues.apache.org/jira/browse/LUCENE-1483?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12656512#action_12656512 ] Mark Miller commented on LUCENE-1483: - Quick question: what should I use for the value

[jira] Issue Comment Edited: (LUCENE-1483) Change IndexSearcher to use MultiSearcher semantics for multiple subreaders

2008-12-14 Thread Mark Miller (JIRA)
[ https://issues.apache.org/jira/browse/LUCENE-1483?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12656508#action_12656508 ] markrmil...@gmail.com edited comment on LUCENE-1483 at 12/14/08 4:20 PM: ---

[jira] Issue Comment Edited: (LUCENE-1483) Change IndexSearcher to use MultiSearcher semantics for multiple subreaders

2008-12-14 Thread Mark Miller (JIRA)
[ https://issues.apache.org/jira/browse/LUCENE-1483?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12656508#action_12656508 ] markrmil...@gmail.com edited comment on LUCENE-1483 at 12/14/08 3:43 PM: ---

[jira] Commented: (LUCENE-1483) Change IndexSearcher to use MultiSearcher semantics for multiple subreaders

2008-12-14 Thread Mark Miller (JIRA)
[ https://issues.apache.org/jira/browse/LUCENE-1483?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12656508#action_12656508 ] Mark Miller commented on LUCENE-1483: - bq. Or, better, we could add a "subord" to brea

[jira] Commented: (LUCENE-1483) Change IndexSearcher to use MultiSearcher semantics for multiple subreaders

2008-12-14 Thread Michael McCandless (JIRA)
[ https://issues.apache.org/jira/browse/LUCENE-1483?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12656507#action_12656507 ] Michael McCandless commented on LUCENE-1483: {quote} > At that point, one star

[jira] Commented: (LUCENE-1483) Change IndexSearcher to use MultiSearcher semantics for multiple subreaders

2008-12-14 Thread Michael McCandless (JIRA)
[ https://issues.apache.org/jira/browse/LUCENE-1483?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12656490#action_12656490 ] Michael McCandless commented on LUCENE-1483: {quote} > Not rare right? Let say

[jira] Commented: (LUCENE-1483) Change IndexSearcher to use MultiSearcher semantics for multiple subreaders

2008-12-14 Thread Mark Miller (JIRA)
[ https://issues.apache.org/jira/browse/LUCENE-1483?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12656489#action_12656489 ] Mark Miller commented on LUCENE-1483: - > But if you are using the old one it wont work

[jira] Commented: (LUCENE-1483) Change IndexSearcher to use MultiSearcher semantics for multiple subreaders

2008-12-14 Thread Mark Miller (JIRA)
[ https://issues.apache.org/jira/browse/LUCENE-1483?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12656488#action_12656488 ] Mark Miller commented on LUCENE-1483: - bq. One problem is that putting an ord "inbetwe

[jira] Commented: (LUCENE-1483) Change IndexSearcher to use MultiSearcher semantics for multiple subreaders

2008-12-14 Thread Yonik Seeley (JIRA)
[ https://issues.apache.org/jira/browse/LUCENE-1483?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12656487#action_12656487 ] Yonik Seeley commented on LUCENE-1483: -- bq. If it's not present, it must fall between

[jira] Commented: (LUCENE-1483) Change IndexSearcher to use MultiSearcher semantics for multiple subreaders

2008-12-14 Thread Michael McCandless (JIRA)
[ https://issues.apache.org/jira/browse/LUCENE-1483?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12656486#action_12656486 ] Michael McCandless commented on LUCENE-1483: {quote} > But if you are using th

[jira] Commented: (LUCENE-1483) Change IndexSearcher to use MultiSearcher semantics for multiple subreaders

2008-12-14 Thread Mark Miller (JIRA)
[ https://issues.apache.org/jira/browse/LUCENE-1483?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12656473#action_12656473 ] Mark Miller commented on LUCENE-1483: - But if you are using the old one it wont work w

[jira] Commented: (LUCENE-1483) Change IndexSearcher to use MultiSearcher semantics for multiple subreaders

2008-12-14 Thread Michael McCandless (JIRA)
[ https://issues.apache.org/jira/browse/LUCENE-1483?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12656472#action_12656472 ] Michael McCandless commented on LUCENE-1483: {quote} > Does this have to wait

[jira] Commented: (LUCENE-1483) Change IndexSearcher to use MultiSearcher semantics for multiple subreaders

2008-12-14 Thread Mark Miller (JIRA)
[ https://issues.apache.org/jira/browse/LUCENE-1483?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12656466#action_12656466 ] Mark Miller commented on LUCENE-1483: - Does this have to wait for 3 then? How can we b

[jira] Commented: (LUCENE-1483) Change IndexSearcher to use MultiSearcher semantics for multiple subreaders

2008-12-14 Thread Michael McCandless (JIRA)
[ https://issues.apache.org/jira/browse/LUCENE-1483?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12656460#action_12656460 ] Michael McCandless commented on LUCENE-1483: {quote} > Sorry that does not wor

[jira] Commented: (LUCENE-1483) Change IndexSearcher to use MultiSearcher semantics for multiple subreaders

2008-12-14 Thread Michael McCandless (JIRA)
[ https://issues.apache.org/jira/browse/LUCENE-1483?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12656459#action_12656459 ] Michael McCandless commented on LUCENE-1483: {quote} > What do we do about the

[jira] Commented: (LUCENE-1483) Change IndexSearcher to use MultiSearcher semantics for multiple subreaders

2008-12-14 Thread Michael McCandless (JIRA)
[ https://issues.apache.org/jira/browse/LUCENE-1483?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12656458#action_12656458 ] Michael McCandless commented on LUCENE-1483: {quote} > You do not need to map

[jira] Issue Comment Edited: (LUCENE-1483) Change IndexSearcher to use MultiSearcher semantics for multiple subreaders

2008-12-14 Thread Mark Miller (JIRA)
[ https://issues.apache.org/jira/browse/LUCENE-1483?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12656454#action_12656454 ] markrmil...@gmail.com edited comment on LUCENE-1483 at 12/14/08 12:56 PM: --

[jira] Commented: (LUCENE-1483) Change IndexSearcher to use MultiSearcher semantics for multiple subreaders

2008-12-14 Thread Mark Miller (JIRA)
[ https://issues.apache.org/jira/browse/LUCENE-1483?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12656454#action_12656454 ] Mark Miller commented on LUCENE-1483: - bq. You compare with ords, never with values.

[jira] Commented: (LUCENE-1483) Change IndexSearcher to use MultiSearcher semantics for multiple subreaders

2008-12-14 Thread Mark Miller (JIRA)
[ https://issues.apache.org/jira/browse/LUCENE-1483?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12656453#action_12656453 ] Mark Miller commented on LUCENE-1483: - What do we do about the old SortComparatorSourc

[jira] Commented: (LUCENE-1483) Change IndexSearcher to use MultiSearcher semantics for multiple subreaders

2008-12-14 Thread Mark Miller (JIRA)
[ https://issues.apache.org/jira/browse/LUCENE-1483?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12656440#action_12656440 ] Mark Miller commented on LUCENE-1483: - bq. How about something like this: Okay, I act

[jira] Commented: (LUCENE-1483) Change IndexSearcher to use MultiSearcher semantics for multiple subreaders

2008-12-14 Thread Uwe Schindler (JIRA)
[ https://issues.apache.org/jira/browse/LUCENE-1483?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12656439#action_12656439 ] Uwe Schindler commented on LUCENE-1483: --- Sorry that does not work because of compari

[jira] Commented: (LUCENE-1483) Change IndexSearcher to use MultiSearcher semantics for multiple subreaders

2008-12-14 Thread Uwe Schindler (JIRA)
[ https://issues.apache.org/jira/browse/LUCENE-1483?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12656436#action_12656436 ] Uwe Schindler commented on LUCENE-1483: --- You do not need to map to long, if you woul

[jira] Commented: (LUCENE-1483) Change IndexSearcher to use MultiSearcher semantics for multiple subreaders

2008-12-14 Thread Michael McCandless (JIRA)
[ https://issues.apache.org/jira/browse/LUCENE-1483?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12656431#action_12656431 ] Michael McCandless commented on LUCENE-1483: {quote} > I've started working t

[jira] Issue Comment Edited: (LUCENE-1483) Change IndexSearcher to use MultiSearcher semantics for multiple subreaders

2008-12-14 Thread Mark Miller (JIRA)
[ https://issues.apache.org/jira/browse/LUCENE-1483?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12656430#action_12656430 ] markrmil...@gmail.com edited comment on LUCENE-1483 at 12/14/08 10:25 AM: --

Re: 2.9/3.0 plan & Java 1.5

2008-12-14 Thread Earwin Burrfoot
> For return parameters, I think you should return the most specific interface > you can give to the user (without fixing to something you may change in > future versions). Maybe a user wants to use the return value of getFields() > as List? If it's only Iterable, he cannot e.g. access the list dir

[jira] Commented: (LUCENE-1483) Change IndexSearcher to use MultiSearcher semantics for multiple subreaders

2008-12-14 Thread Mark Miller (JIRA)
[ https://issues.apache.org/jira/browse/LUCENE-1483?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12656430#action_12656430 ] Mark Miller commented on LUCENE-1483: - I was off on the fillFields stuff, I forgot we

[jira] Commented: (LUCENE-1483) Change IndexSearcher to use MultiSearcher semantics for multiple subreaders

2008-12-14 Thread Mark Miller (JIRA)
[ https://issues.apache.org/jira/browse/LUCENE-1483?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12656417#action_12656417 ] Mark Miller commented on LUCENE-1483: - It seems there are a few hoops to jump through

RE: 2.9/3.0 plan & Java 1.5

2008-12-14 Thread Uwe Schindler
> > A side note: there are some parts in Lucene's API that are not so good: > very > > old constructors of Analyzer use e.g. > Hashtable/HashMap/ArrayList/Vector/... > > as parameter etc. For clean code, it should be replaced by Map/Set/List > > interfaces. But this would not be backwards compati

[jira] Commented: (LUCENE-1487) FieldCacheTermsFilter

2008-12-14 Thread Yonik Seeley (JIRA)
[ https://issues.apache.org/jira/browse/LUCENE-1487?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12656406#action_12656406 ] Yonik Seeley commented on LUCENE-1487: -- FieldCacheStringFilter? FieldCacheValueFilter

Re: 2.9/3.0 plan & Java 1.5

2008-12-14 Thread Nadav Har'El
On Sun, Dec 14, 2008, Uwe Schindler wrote about "RE: 2.9/3.0 plan & Java 1.5": > A side note: there are some parts in Lucene's API that are not so good: very > old constructors of Analyzer use e.g. Hashtable/HashMap/ArrayList/Vector/... > as parameter etc. For clean code, it should be replaced by M

[jira] Commented: (LUCENE-1483) Change IndexSearcher to use MultiSearcher semantics for multiple subreaders

2008-12-14 Thread Mark Miller (JIRA)
[ https://issues.apache.org/jira/browse/LUCENE-1483?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12656398#action_12656398 ] Mark Miller commented on LUCENE-1483: - Fantastic Mike! I've started working through th

[jira] Commented: (LUCENE-1487) FieldCacheTermsFilter

2008-12-14 Thread Michael McCandless (JIRA)
[ https://issues.apache.org/jira/browse/LUCENE-1487?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12656397#action_12656397 ] Michael McCandless commented on LUCENE-1487: Yonik do you have any suggestions

Re: 2.9, 3.0 and deprecation

2008-12-14 Thread Michael McCandless
Grant Ingersoll wrote: On Dec 14, 2008, at 6:54 AM, Michael McCandless wrote: I'd also personally like to see 2.9 released sooner rather than later, maybe earliesh next year? I don't think we should hold up 2.9 for some of the big items below (eg Fieldable/AbstractField/Field cleanup), es

[jira] Assigned: (LUCENE-1484) Remove SegmentReader.document synchronization

2008-12-14 Thread Michael McCandless (JIRA)
[ https://issues.apache.org/jira/browse/LUCENE-1484?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Michael McCandless reassigned LUCENE-1484: -- Assignee: Michael McCandless > Remove SegmentReader.document synchronization >

[jira] Updated: (LUCENE-1484) Remove SegmentReader.document synchronization

2008-12-14 Thread Michael McCandless (JIRA)
[ https://issues.apache.org/jira/browse/LUCENE-1484?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Michael McCandless updated LUCENE-1484: --- Attachment: LUCENE-1484.patch OK I've fixed a few issues with the patch. All tests

RE: 2.9/3.0 plan & Java 1.5

2008-12-14 Thread Uwe Schindler
> >> 2. Generics' utility is not limited to collections, we use it for > >> type-safe index fields storage/querying for example. > >> Define field: > >> FieldInfo EMPLOYER_CATEGORY = > >> field(ENUM(EmployerCategory.class), INDEX); > >> Store it: > >> add(vacancy.getEmployerCategory(), EMPLOYER_CAT

Re: 2.9/3.0 plan & Java 1.5

2008-12-14 Thread Earwin Burrfoot
>> 2. Generics' utility is not limited to collections, we use it for >> type-safe index fields storage/querying for example. >> Define field: >> FieldInfo EMPLOYER_CATEGORY = >> field(ENUM(EmployerCategory.class), INDEX); >> Store it: >> add(vacancy.getEmployerCategory(), EMPLOYER_CATEGORY); >> Que

Re: 2.9, 3.0 and deprecation

2008-12-14 Thread Grant Ingersoll
On Dec 14, 2008, at 6:54 AM, Michael McCandless wrote: I'd also personally like to see 2.9 released sooner rather than later, maybe earliesh next year? I don't think we should hold up 2.9 for some of the big items below (eg Fieldable/AbstractField/Field cleanup), especially if they have not ev

RE: 2.9/3.0 plan & Java 1.5

2008-12-14 Thread Uwe Schindler
Hi Earwin, > Two points here: > 1. "It should, because in the compiled JVM code, generics do simply > not appear." is not completely true. Types that have their type > parameters lower-bound, erase said parameters to this low bound and > not to Object. Google Guice uses this as a base to trick all

Re: 2.9/3.0 plan & Java 1.5

2008-12-14 Thread Earwin Burrfoot
Two points here: 1. "It should, because in the compiled JVM code, generics do simply not appear." is not completely true. Types that have their type parameters lower-bound, erase said parameters to this low bound and not to Object. Google Guice uses this as a base to trick allowing runtime generics

[jira] Commented: (LUCENE-1482) Replace infoSteram by a logging framework (SLF4J)

2008-12-14 Thread Shai Erera (JIRA)
[ https://issues.apache.org/jira/browse/LUCENE-1482?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12656382#action_12656382 ] Shai Erera commented on LUCENE-1482: Is there anything else I can do in order to help

Re: 2.9/3.0 plan & Java 1.5

2008-12-14 Thread Michael McCandless
I like that approach. So we just need a volunteer to do at least step 1, for 3.0, which should be reasonably straightforward. Another big effort for 3.0 will be fixing all places internal to Lucene (including contrib, tests) that still use deprecated APIs. Mike Uwe Schindler wrote: A

RE: 2.9/3.0 plan & Java 1.5

2008-12-14 Thread Uwe Schindler
A good idea would be to do the transformation to generics like the following: - write a patch that replaces all *public* API declarations with generics (especially Document, Fieldable and so on where a lot of List/Sets occur). The Lucene code behind these declarations will compile without any prob

Re: 2.9, 3.0 and deprecation

2008-12-14 Thread Michael McCandless
I'd also personally like to see 2.9 released sooner rather than later, maybe earliesh next year? I don't think we should hold up 2.9 for some of the big items below (eg Fieldable/AbstractField/Field cleanup), especially if they have not even been started yet. One question: I'm assuming after 2.9

Re: 2.9/3.0 plan & Java 1.5

2008-12-14 Thread Michael McCandless
Uwe Schindler wrote: EG I haven't yet tested for JAR drop-in compatibility, eg if in 3.1 we wanted to swap in more generics, would a 3.0 app be able to drop in the 3.1 Lucene jar w/o problems? It should, because in the compiled JVM code, generics do simply not appear. A, right. So

[jira] Commented: (LUCENE-1484) Remove SegmentReader.document synchronization

2008-12-14 Thread Michael McCandless (JIRA)
[ https://issues.apache.org/jira/browse/LUCENE-1484?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12656377#action_12656377 ] Michael McCandless commented on LUCENE-1484: Jason I'm seeing multiple test ca