You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Jeffrey Yang (JIRA)" <ji...@apache.org> on 2008/02/15 19:42:10 UTC

[jira] Created: (LUCENE-1180) Syns2Index fails

Syns2Index fails
----------------

                 Key: LUCENE-1180
                 URL: https://issues.apache.org/jira/browse/LUCENE-1180
             Project: Lucene - Java
          Issue Type: Bug
          Components: contrib/*
    Affects Versions: 2.3
            Reporter: Jeffrey Yang
            Priority: Minor


Running Syns2Index fails with a
java.lang.IllegalArgumentException: maxBufferedDocs must at least be 2 when enabled exception.
at org.apache.lucene.index.IndexWriter.setMaxBufferedDocs(IndexWriter.java:883)
at org.apache.lucene.wordnet.Syns2Index.index(Syns2Index.java:249)
at org.apache.lucene.wordnet.Syns2Index.main(Syns2Index.java:208)

The code is here
		// blindly up these parameters for speed
		writer.setMergeFactor( writer.getMergeFactor() * 2);
		writer.setMaxBufferedDocs( writer.getMaxBufferedDocs() * 2);

It looks like getMaxBufferedDocs used to return 10, and now it returns -1, not sure when that started happening.

My suggestion would be to just remove these three lines.  Since speed has already improved vastly, there isn't a need to speed things up.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


[jira] Updated: (LUCENE-1180) Syns2Index fails

Posted by "Jeffrey Yang (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/LUCENE-1180?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jeffrey Yang updated LUCENE-1180:
---------------------------------

    Attachment: syns2index_fix_2.3.patch
                syns2index_fix_2.4-dev.patch

Patches to fix this for 2.3 and 2.4-dev

> Syns2Index fails
> ----------------
>
>                 Key: LUCENE-1180
>                 URL: https://issues.apache.org/jira/browse/LUCENE-1180
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: contrib/*
>    Affects Versions: 2.3
>            Reporter: Jeffrey Yang
>            Priority: Minor
>         Attachments: syns2index_fix_2.3.patch, syns2index_fix_2.4-dev.patch
>
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> Running Syns2Index fails with a
> java.lang.IllegalArgumentException: maxBufferedDocs must at least be 2 when enabled exception.
> at org.apache.lucene.index.IndexWriter.setMaxBufferedDocs(IndexWriter.java:883)
> at org.apache.lucene.wordnet.Syns2Index.index(Syns2Index.java:249)
> at org.apache.lucene.wordnet.Syns2Index.main(Syns2Index.java:208)
> The code is here
> 		// blindly up these parameters for speed
> 		writer.setMergeFactor( writer.getMergeFactor() * 2);
> 		writer.setMaxBufferedDocs( writer.getMaxBufferedDocs() * 2);
> It looks like getMaxBufferedDocs used to return 10, and now it returns -1, not sure when that started happening.
> My suggestion would be to just remove these three lines.  Since speed has already improved vastly, there isn't a need to speed things up.
> To run this, Syns2Index requires two args.  The first is the location of the wn_s.pl file, and the second is the directory to create the index in.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


[jira] Updated: (LUCENE-1180) Syns2Index fails

Posted by "Jeffrey Yang (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/LUCENE-1180?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jeffrey Yang updated LUCENE-1180:
---------------------------------

    Description: 
Running Syns2Index fails with a
java.lang.IllegalArgumentException: maxBufferedDocs must at least be 2 when enabled exception.
at org.apache.lucene.index.IndexWriter.setMaxBufferedDocs(IndexWriter.java:883)
at org.apache.lucene.wordnet.Syns2Index.index(Syns2Index.java:249)
at org.apache.lucene.wordnet.Syns2Index.main(Syns2Index.java:208)

The code is here
		// blindly up these parameters for speed
		writer.setMergeFactor( writer.getMergeFactor() * 2);
		writer.setMaxBufferedDocs( writer.getMaxBufferedDocs() * 2);

It looks like getMaxBufferedDocs used to return 10, and now it returns -1, not sure when that started happening.

My suggestion would be to just remove these three lines.  Since speed has already improved vastly, there isn't a need to speed things up.

To run this, Syns2Index requires two args.  The first is the location of the wn_s.pl file, and the second is the directory to create the index in.

  was:
Running Syns2Index fails with a
java.lang.IllegalArgumentException: maxBufferedDocs must at least be 2 when enabled exception.
at org.apache.lucene.index.IndexWriter.setMaxBufferedDocs(IndexWriter.java:883)
at org.apache.lucene.wordnet.Syns2Index.index(Syns2Index.java:249)
at org.apache.lucene.wordnet.Syns2Index.main(Syns2Index.java:208)

The code is here
		// blindly up these parameters for speed
		writer.setMergeFactor( writer.getMergeFactor() * 2);
		writer.setMaxBufferedDocs( writer.getMaxBufferedDocs() * 2);

It looks like getMaxBufferedDocs used to return 10, and now it returns -1, not sure when that started happening.

My suggestion would be to just remove these three lines.  Since speed has already improved vastly, there isn't a need to speed things up.


> Syns2Index fails
> ----------------
>
>                 Key: LUCENE-1180
>                 URL: https://issues.apache.org/jira/browse/LUCENE-1180
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: contrib/*
>    Affects Versions: 2.3
>            Reporter: Jeffrey Yang
>            Priority: Minor
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> Running Syns2Index fails with a
> java.lang.IllegalArgumentException: maxBufferedDocs must at least be 2 when enabled exception.
> at org.apache.lucene.index.IndexWriter.setMaxBufferedDocs(IndexWriter.java:883)
> at org.apache.lucene.wordnet.Syns2Index.index(Syns2Index.java:249)
> at org.apache.lucene.wordnet.Syns2Index.main(Syns2Index.java:208)
> The code is here
> 		// blindly up these parameters for speed
> 		writer.setMergeFactor( writer.getMergeFactor() * 2);
> 		writer.setMaxBufferedDocs( writer.getMaxBufferedDocs() * 2);
> It looks like getMaxBufferedDocs used to return 10, and now it returns -1, not sure when that started happening.
> My suggestion would be to just remove these three lines.  Since speed has already improved vastly, there isn't a need to speed things up.
> To run this, Syns2Index requires two args.  The first is the location of the wn_s.pl file, and the second is the directory to create the index in.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


[jira] Resolved: (LUCENE-1180) Syns2Index fails

Posted by "Otis Gospodnetic (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/LUCENE-1180?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Otis Gospodnetic resolved LUCENE-1180.
--------------------------------------

    Resolution: Fixed

It looks like Mike fixed this 2 months ago:

r694222 | mikemccand | 2008-09-11 08:11:03 -0400 (Thu, 11 Sep 2008) | 1 line

fix wordnet's Syns2Index to not fiddle with mergeFactor & maxBuffereDocs (the latter was hitting an exception)


> Syns2Index fails
> ----------------
>
>                 Key: LUCENE-1180
>                 URL: https://issues.apache.org/jira/browse/LUCENE-1180
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: contrib/*
>    Affects Versions: 2.3
>            Reporter: Jeffrey Yang
>            Assignee: Otis Gospodnetic
>            Priority: Minor
>         Attachments: syns2index_fix_2.3.patch, syns2index_fix_2.4-dev.patch
>
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> Running Syns2Index fails with a
> java.lang.IllegalArgumentException: maxBufferedDocs must at least be 2 when enabled exception.
> at org.apache.lucene.index.IndexWriter.setMaxBufferedDocs(IndexWriter.java:883)
> at org.apache.lucene.wordnet.Syns2Index.index(Syns2Index.java:249)
> at org.apache.lucene.wordnet.Syns2Index.main(Syns2Index.java:208)
> The code is here
> 		// blindly up these parameters for speed
> 		writer.setMergeFactor( writer.getMergeFactor() * 2);
> 		writer.setMaxBufferedDocs( writer.getMaxBufferedDocs() * 2);
> It looks like getMaxBufferedDocs used to return 10, and now it returns -1, not sure when that started happening.
> My suggestion would be to just remove these three lines.  Since speed has already improved vastly, there isn't a need to speed things up.
> To run this, Syns2Index requires two args.  The first is the location of the wn_s.pl file, and the second is the directory to create the index in.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


[jira] Commented: (LUCENE-1180) Syns2Index fails

Posted by "Yonik Seeley (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/LUCENE-1180?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12569371#action_12569371 ] 

Yonik Seeley commented on LUCENE-1180:
--------------------------------------

Thanks Jeffrey, I agree with your assessment... could you provide a patch?

> Syns2Index fails
> ----------------
>
>                 Key: LUCENE-1180
>                 URL: https://issues.apache.org/jira/browse/LUCENE-1180
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: contrib/*
>    Affects Versions: 2.3
>            Reporter: Jeffrey Yang
>            Priority: Minor
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> Running Syns2Index fails with a
> java.lang.IllegalArgumentException: maxBufferedDocs must at least be 2 when enabled exception.
> at org.apache.lucene.index.IndexWriter.setMaxBufferedDocs(IndexWriter.java:883)
> at org.apache.lucene.wordnet.Syns2Index.index(Syns2Index.java:249)
> at org.apache.lucene.wordnet.Syns2Index.main(Syns2Index.java:208)
> The code is here
> 		// blindly up these parameters for speed
> 		writer.setMergeFactor( writer.getMergeFactor() * 2);
> 		writer.setMaxBufferedDocs( writer.getMaxBufferedDocs() * 2);
> It looks like getMaxBufferedDocs used to return 10, and now it returns -1, not sure when that started happening.
> My suggestion would be to just remove these three lines.  Since speed has already improved vastly, there isn't a need to speed things up.
> To run this, Syns2Index requires two args.  The first is the location of the wn_s.pl file, and the second is the directory to create the index in.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


[jira] Assigned: (LUCENE-1180) Syns2Index fails

Posted by "Otis Gospodnetic (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/LUCENE-1180?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Otis Gospodnetic reassigned LUCENE-1180:
----------------------------------------

    Assignee: Otis Gospodnetic

> Syns2Index fails
> ----------------
>
>                 Key: LUCENE-1180
>                 URL: https://issues.apache.org/jira/browse/LUCENE-1180
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: contrib/*
>    Affects Versions: 2.3
>            Reporter: Jeffrey Yang
>            Assignee: Otis Gospodnetic
>            Priority: Minor
>         Attachments: syns2index_fix_2.3.patch, syns2index_fix_2.4-dev.patch
>
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> Running Syns2Index fails with a
> java.lang.IllegalArgumentException: maxBufferedDocs must at least be 2 when enabled exception.
> at org.apache.lucene.index.IndexWriter.setMaxBufferedDocs(IndexWriter.java:883)
> at org.apache.lucene.wordnet.Syns2Index.index(Syns2Index.java:249)
> at org.apache.lucene.wordnet.Syns2Index.main(Syns2Index.java:208)
> The code is here
> 		// blindly up these parameters for speed
> 		writer.setMergeFactor( writer.getMergeFactor() * 2);
> 		writer.setMaxBufferedDocs( writer.getMaxBufferedDocs() * 2);
> It looks like getMaxBufferedDocs used to return 10, and now it returns -1, not sure when that started happening.
> My suggestion would be to just remove these three lines.  Since speed has already improved vastly, there isn't a need to speed things up.
> To run this, Syns2Index requires two args.  The first is the location of the wn_s.pl file, and the second is the directory to create the index in.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org