You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Dave Seltzer (Created) (JIRA)" <ji...@apache.org> on 2012/03/12 16:34:37 UTC

[jira] [Created] (LUCENE-3865) MemoryIndex does not allow user to add multiple values for a single field name

MemoryIndex does not allow user to add multiple values for a single field name
------------------------------------------------------------------------------

                 Key: LUCENE-3865
                 URL: https://issues.apache.org/jira/browse/LUCENE-3865
             Project: Lucene - Java
          Issue Type: Bug
          Components: core/index
    Affects Versions: 3.5
         Environment: All
            Reporter: Dave Seltzer
            Priority: Minor


When using MemoryIndex.addField the following operation throws an IllegalArgumentException:

index.addField("foobar", "value1", LuceneAnalyzer); 
index.addField("foobar", "value2", LuceneAnalyzer); 

This throws:
java.lang.IllegalArgumentException: field must not be added more than once

According to Uwe Schindler on the java-user mailing list this violates the IndexWriter/IndexReader contract.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] [Resolved] (LUCENE-3865) MemoryIndex does not allow user to add multiple values for a single field name

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

Simon Willnauer resolved LUCENE-3865.
-------------------------------------

       Resolution: Duplicate
    Fix Version/s: 5.0
                   4.1
         Assignee: Simon Willnauer

included in LUCENE-4515
                
> MemoryIndex does not allow user to add multiple values for a single field name
> ------------------------------------------------------------------------------
>
>                 Key: LUCENE-3865
>                 URL: https://issues.apache.org/jira/browse/LUCENE-3865
>             Project: Lucene - Core
>          Issue Type: Bug
>          Components: modules/other
>    Affects Versions: 3.5
>         Environment: All
>            Reporter: Dave Seltzer
>            Assignee: Simon Willnauer
>            Priority: Minor
>             Fix For: 4.1, 5.0
>
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> When using MemoryIndex.addField the following operation throws an IllegalArgumentException:
> index.addField("foobar", "value1", LuceneAnalyzer); 
> index.addField("foobar", "value2", LuceneAnalyzer); 
> This throws:
> java.lang.IllegalArgumentException: field must not be added more than once
> According to Uwe Schindler on the java-user mailing list this violates the IndexWriter/IndexReader contract.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

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


[jira] [Updated] (LUCENE-3865) MemoryIndex does not allow user to add multiple values for a single field name

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

Uwe Schindler updated LUCENE-3865:
----------------------------------

    Component/s:     (was: core/index)
                 modules/other
    
> MemoryIndex does not allow user to add multiple values for a single field name
> ------------------------------------------------------------------------------
>
>                 Key: LUCENE-3865
>                 URL: https://issues.apache.org/jira/browse/LUCENE-3865
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: modules/other
>    Affects Versions: 3.5
>         Environment: All
>            Reporter: Dave Seltzer
>            Priority: Minor
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> When using MemoryIndex.addField the following operation throws an IllegalArgumentException:
> index.addField("foobar", "value1", LuceneAnalyzer); 
> index.addField("foobar", "value2", LuceneAnalyzer); 
> This throws:
> java.lang.IllegalArgumentException: field must not be added more than once
> According to Uwe Schindler on the java-user mailing list this violates the IndexWriter/IndexReader contract.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] [Commented] (LUCENE-3865) MemoryIndex does not allow user to add multiple values for a single field name

Posted by "Uwe Schindler (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/LUCENE-3865?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13227628#comment-13227628 ] 

Uwe Schindler commented on LUCENE-3865:
---------------------------------------

Thanks for opening this, I will have a look into this. If I am able to fix this easily, I will assign myself!
                
> MemoryIndex does not allow user to add multiple values for a single field name
> ------------------------------------------------------------------------------
>
>                 Key: LUCENE-3865
>                 URL: https://issues.apache.org/jira/browse/LUCENE-3865
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: core/index
>    Affects Versions: 3.5
>         Environment: All
>            Reporter: Dave Seltzer
>            Priority: Minor
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> When using MemoryIndex.addField the following operation throws an IllegalArgumentException:
> index.addField("foobar", "value1", LuceneAnalyzer); 
> index.addField("foobar", "value2", LuceneAnalyzer); 
> This throws:
> java.lang.IllegalArgumentException: field must not be added more than once
> According to Uwe Schindler on the java-user mailing list this violates the IndexWriter/IndexReader contract.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] [Commented] (LUCENE-3865) MemoryIndex does not allow user to add multiple values for a single field name

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

Ashwin Jayaprakash commented on LUCENE-3865:
--------------------------------------------

An option to delete fields would also be useful.
                
> MemoryIndex does not allow user to add multiple values for a single field name
> ------------------------------------------------------------------------------
>
>                 Key: LUCENE-3865
>                 URL: https://issues.apache.org/jira/browse/LUCENE-3865
>             Project: Lucene - Core
>          Issue Type: Bug
>          Components: modules/other
>    Affects Versions: 3.5
>         Environment: All
>            Reporter: Dave Seltzer
>            Priority: Minor
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> When using MemoryIndex.addField the following operation throws an IllegalArgumentException:
> index.addField("foobar", "value1", LuceneAnalyzer); 
> index.addField("foobar", "value2", LuceneAnalyzer); 
> This throws:
> java.lang.IllegalArgumentException: field must not be added more than once
> According to Uwe Schindler on the java-user mailing list this violates the IndexWriter/IndexReader contract.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

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


[jira] [Commented] (LUCENE-3865) MemoryIndex does not allow user to add multiple values for a single field name

Posted by "Jasper van Veghel (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/LUCENE-3865?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13447263#comment-13447263 ] 

Jasper van Veghel commented on LUCENE-3865:
-------------------------------------------

Is MemoryIndex still a relevant way of doing Prospective Search? I see a couple of other issues that talk about using a regular IndexWriter with a MemoryCodec.

I myself am also looking for a way to do Prospective Search — I'd like to push documents into both Apache Solr (general search) and something like MemoryIndex (for alerting a large number of users instantly.) I've implemented it to the point where I have a Solr IndexSchema to provide me with the same Analyzers as the ones the Apache Solr instance has, but now I'm running into the issue that MemoryIndex does not support multiple fields and only supports String-valued elements (less of an issue than the lack of multiple-field support) .. Should I make an effort to try and add multiple-field support to MemoryIndex or should I look towards another way of achieving the same? :-)
                
> MemoryIndex does not allow user to add multiple values for a single field name
> ------------------------------------------------------------------------------
>
>                 Key: LUCENE-3865
>                 URL: https://issues.apache.org/jira/browse/LUCENE-3865
>             Project: Lucene - Core
>          Issue Type: Bug
>          Components: modules/other
>    Affects Versions: 3.5
>         Environment: All
>            Reporter: Dave Seltzer
>            Priority: Minor
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> When using MemoryIndex.addField the following operation throws an IllegalArgumentException:
> index.addField("foobar", "value1", LuceneAnalyzer); 
> index.addField("foobar", "value2", LuceneAnalyzer); 
> This throws:
> java.lang.IllegalArgumentException: field must not be added more than once
> According to Uwe Schindler on the java-user mailing list this violates the IndexWriter/IndexReader contract.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

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


[jira] [Comment Edited] (LUCENE-3865) MemoryIndex does not allow user to add multiple values for a single field name

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

Ashwin Jayaprakash edited comment on LUCENE-3865 at 10/30/12 6:48 AM:
----------------------------------------------------------------------

An option to delete fields would also be useful.

Does this mean that RAMDirectory is still alright to use for small data sets?
                
      was (Author: ashwin.jayaprakash):
    An option to delete fields would also be useful.
                  
> MemoryIndex does not allow user to add multiple values for a single field name
> ------------------------------------------------------------------------------
>
>                 Key: LUCENE-3865
>                 URL: https://issues.apache.org/jira/browse/LUCENE-3865
>             Project: Lucene - Core
>          Issue Type: Bug
>          Components: modules/other
>    Affects Versions: 3.5
>         Environment: All
>            Reporter: Dave Seltzer
>            Priority: Minor
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> When using MemoryIndex.addField the following operation throws an IllegalArgumentException:
> index.addField("foobar", "value1", LuceneAnalyzer); 
> index.addField("foobar", "value2", LuceneAnalyzer); 
> This throws:
> java.lang.IllegalArgumentException: field must not be added more than once
> According to Uwe Schindler on the java-user mailing list this violates the IndexWriter/IndexReader contract.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

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